1. 07 3月, 2011 31 次提交
  2. 06 3月, 2011 1 次提交
  3. 05 3月, 2011 3 次提交
  4. 04 3月, 2011 3 次提交
    • P
      linux-user: fix compile failure if !CONFIG_USE_GUEST_BASE · 4e655712
      Peter Maydell 提交于
      If CONFIG_USE_GUEST_BASE is not defined, gcc complains:
       linux-user/mmap.c:235: error: comparison of unsigned expression >= 0 is always true
      
      because RESERVED_VA is #defined to 0. Since mmap_find_vma_reserved()
      will never be called anyway if RESERVED_VA is always 0, fix this by
      simply #ifdef'ing away the function and its callsite.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      4e655712
    • S
      virtio-net: Fix lduw_p() pointer argument of wrong size · b46d97f2
      Stefan Hajnoczi 提交于
      A pointer to a size_t variable was passed as the void * pointer to
      lduw_p() in virtio_net_receive().  Instead of acting on the 16-bit value
      this caused failure on big-endian hosts.
      
      Avoid this issue in the future by using stw_p() instead.  In general we
      should use ld*_p() for loading from target memory and st*_p() for
      storing to target memory anyway, not the other way around.
      
      Also tighten up a correct use of lduw_p() when stw_p() should be used
      instead in virtio_net_get_config().
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      b46d97f2
    • A
      target-sh4: move intr_at_halt out of cpu_halted() · efac4154
      Aurelien Jarno 提交于
      All targets except SH4 have the same cpu_halted() routine, and it has
      only one caller. It is therefore a good candidate for inlining.
      
      The difference is the handling of the intr_at_halt, which is necessary
      to ignore SR.BL when sleeping. Move intr_at_halt handling out of it, by
      setting this variable while executing the sleep instruction, and
      clearing it when the CPU has been woken-up by an interrupt, whatever the
      state of SR.BL. Also rename this variable in_sleep.
      
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      efac4154
  5. 03 3月, 2011 2 次提交