1. 23 12月, 2013 1 次提交
  2. 18 12月, 2013 1 次提交
    • P
      target-arm: Clean up handling of AArch64 PSTATE · d356312f
      Peter Maydell 提交于
      The env->pstate field is a little odd since it doesn't strictly
      speaking represent an architectural register. However it's convenient
      for QEMU to use it to hold the various PSTATE architectural bits
      in the same format the architecture specifies for SPSR registers
      (since this is the same format the kernel uses for signal handlers
      and the KVM register). Add some structure to how we deal with it:
       * document what env->pstate is
       * add some #defines for various bits in it
       * add helpers for reading/writing it taking account of caching
         of NZCV, and use them where appropriate
       * reset it on startup
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1385645602-18662-3-git-send-email-peter.maydell@linaro.org
      Reviewed-by: NChristoffer Dall <christoffer.dall@linaro.org>
      d356312f
  3. 11 9月, 2013 1 次提交
  4. 30 7月, 2013 2 次提交
    • P
      linux-user/signal.c: Avoid using uninitialized data in ARM sigreturn · 978fae9f
      Peter Maydell 提交于
      Rephrase code used in ARM sigreturn functions to avoid using
      uninitialized variables. This fixes one genuine problem ('frame'
      would not be initialized if we took the error-exit path because
      our stackpointer was misaligned) and one which is clang being
      alarmist (frame_addr wouldn't be initialized, though this is
      harmless since unlock_user_struct ignores its second argument
      in these cases; however since we don't generally make use of
      this not-really-documented effect it's better avoided).
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1375095632-13735-3-git-send-email-peter.maydell@linaro.org
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      978fae9f
    • P
      linux-user/signal.c: PPC: Silence clang uninitialized-use warning · b04636f8
      Peter Maydell 提交于
      Silence a clang warning in a PPC signal return function:
      
      /home/petmay01/linaro/qemu-from-laptop/qemu/linux-user/signal.c:4611:9: error: variable 'sr_addr' is used
            uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
          if (!lock_user_struct(VERIFY_READ, sc, sc_addr, 1))
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/petmay01/linaro/qemu-from-laptop/qemu/linux-user/signal.c:4636:28: note: uninitialized use occurs here
          unlock_user_struct(sr, sr_addr, 1);
                                 ^~~~~~~
      /home/petmay01/linaro/qemu-from-laptop/qemu/linux-user/qemu.h:442:27: note: expanded from macro 'unlock_user_struct'
          unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0)
                                ^
      
      This happens when we unlock a user struct which we never
      attempted to lock. Strictly, clang is actually wrong here -- it
      hasn't been able to spot that unlock_user_struct() doesn't use
      its second argument if the first is NULL. However it doesn't
      seem too unreasonable to demand that we pass in initialized
      values to it.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1375095632-13735-2-git-send-email-peter.maydell@linaro.org
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b04636f8
  5. 23 7月, 2013 1 次提交
  6. 10 7月, 2013 1 次提交
  7. 05 7月, 2013 1 次提交
  8. 28 6月, 2013 1 次提交
  9. 21 5月, 2013 2 次提交
  10. 05 3月, 2013 3 次提交
  11. 12 1月, 2013 1 次提交
  12. 08 1月, 2013 2 次提交
  13. 12 10月, 2012 1 次提交
  14. 05 10月, 2012 1 次提交
  15. 10 8月, 2012 1 次提交
  16. 01 8月, 2012 1 次提交
  17. 28 7月, 2012 1 次提交
  18. 22 6月, 2012 1 次提交
  19. 15 3月, 2012 3 次提交
  20. 08 3月, 2012 1 次提交
  21. 02 2月, 2012 1 次提交
  22. 02 12月, 2011 1 次提交
  23. 27 10月, 2011 2 次提交
  24. 05 10月, 2011 1 次提交
  25. 26 8月, 2011 1 次提交
  26. 13 7月, 2011 1 次提交
  27. 22 6月, 2011 2 次提交
  28. 20 6月, 2011 1 次提交
  29. 08 6月, 2011 1 次提交
  30. 20 5月, 2011 1 次提交
  31. 08 5月, 2011 1 次提交