qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] ppc: Fixes for LSWX and LSWI instructions
@ 2016-04-14 15:14 Thomas Huth
  2016-04-14 15:14 ` [Qemu-devel] [PATCH 1/2] ppc: Fix the range check in the LSWI instruction Thomas Huth
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas Huth @ 2016-04-14 15:14 UTC (permalink / raw)
  To: Alexander Graf, qemu-ppc; +Cc: qemu-devel, lvivier, david, mark.cave-ayland

These two patches fix the bad range checks in the LSWI and LSWX
instructions.

To see the change in behavior for the lswx instruction, you can use the
"emulator" test from the kvm-unit-tests suite - code can be found here:

https://git.kernel.org/cgit/virt/kvm/kvm-unit-tests.git/tree/powerpc/emulator.c#n95

For testing the lswi instruction, an additional kvm-unit-test can be
used, see the patch that I've posted here:

https://patchwork.ozlabs.org/patch/610483/


Thomas Huth (2):
  ppc: Fix the range check in the LSWI instruction
  ppc: Fix the bad exception NIP value and the range check in LSWX

 target-ppc/cpu.h        | 10 ++++++++++
 target-ppc/mem_helper.c |  5 +++--
 target-ppc/translate.c  |  6 ++----
 3 files changed, 15 insertions(+), 6 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-15 10:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 15:14 [Qemu-devel] [PATCH 0/2] ppc: Fixes for LSWX and LSWI instructions Thomas Huth
2016-04-14 15:14 ` [Qemu-devel] [PATCH 1/2] ppc: Fix the range check in the LSWI instruction Thomas Huth
2016-04-14 15:14 ` [Qemu-devel] [PATCH 2/2] ppc: Fix the bad exception NIP value and the range check in LSWX Thomas Huth
2016-04-15  2:52 ` [Qemu-devel] [PATCH 0/2] ppc: Fixes for LSWX and LSWI instructions David Gibson
2016-04-15 10:20 ` Mark Cave-Ayland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).