1. 03 11月, 2014 1 次提交
    • L
      target-mips: add KScratch registers · e98c0d17
      Leon Alrae 提交于
      KScratch<n> Registers (CP0 Register 31, Selects 2 to 7)
      
      The KScratch registers are read/write registers available for scratch pad
      storage by kernel mode software. They are 32-bits in width for 32-bit
      processors and 64-bits for 64-bit processors.
      
      CP0Config4.KScrExist[2:7] bits indicate presence of CP0_KScratch1-6 registers.
      For Release 6, all KScratch registers are required.
      Signed-off-by: NLeon Alrae <leon.alrae@imgtec.com>
      Reviewed-by: NYongbok Kim <yongbok.kim@imgtec.com>
      e98c0d17
  2. 24 10月, 2014 1 次提交
  3. 14 10月, 2014 13 次提交
  4. 13 10月, 2014 13 次提交
  5. 06 10月, 2014 1 次提交
  6. 26 9月, 2014 1 次提交
  7. 12 8月, 2014 1 次提交
  8. 07 8月, 2014 1 次提交
    • J
      target-mips: Ignore unassigned accesses with KVM · eddedd54
      James Hogan 提交于
      MIPS registers an unassigned access handler which raises a guest bus
      error exception. However this causes QEMU to crash when KVM is enabled
      as it isn't called from the main execution loop so longjmp() gets called
      without a corresponding setjmp().
      
      Until the KVM API can be updated to trigger a guest exception in
      response to an MMIO exit, prevent the bus error exception being raised
      from mips_cpu_unassigned_access() if KVM is enabled.
      
      The check is at run time since the do_unassigned_access callback is
      initialised before it is known whether KVM will be enabled.
      
      The problem can be triggered with Malta emulation by making the guest
      write to the reset region at physical address 0x1bf00000, since it is
      marked read-only which is treated as unassigned for writes.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Reviewed-by: NAurelien Jarno <aurelien@aurel32.net>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Gleb Natapov <gleb@redhat.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Cc: Sanjay Lal <sanjayl@kymasys.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      eddedd54
  9. 29 7月, 2014 1 次提交
  10. 10 7月, 2014 1 次提交
    • J
      mips/kvm: Disable FPU on reset with KVM · 0e928b12
      James Hogan 提交于
      KVM doesn't yet support the MIPS FPU, or writing to the guest's Config1
      register which contains the FPU implemented bit. Clear QEMU's version of
      that bit on reset and display a warning that the FPU has been disabled.
      
      The previous incorrect Config1 CP0 register value wasn't being passed to
      KVM yet, however we should ensure it is set correctly now to reduce the
      risk of breaking migration/loadvm to a future version of QEMU/Linux that
      does support it.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0e928b12
  11. 05 7月, 2014 1 次提交
  12. 21 6月, 2014 1 次提交
  13. 19 6月, 2014 1 次提交
  14. 18 6月, 2014 3 次提交