summaryrefslogtreecommitdiff
path: root/target-s390x/cpu.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>2014-02-25 15:58:45 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2014-05-20 13:05:58 +0200
commit8e4e86afa524588397be2101c3582c897fc408df (patch)
treee69edd29fdbc4bba178afa03a2a4d5938cafc439 /target-s390x/cpu.c
parent76eb98d51c0a0448c5bc2f70d15fe334e7234964 (diff)
downloadqemu-8e4e86afa524588397be2101c3582c897fc408df.tar.gz
s390x: remove duplicate definitions of DIAG 501
When restoring the previously saved instruction in kvm_arch_remove_sw_breakpoint(), we only restored one byte. Let's use the sizeof() operator to make sure we restore the entire instruction. While we are at it, let's remove the duplicate definitions of DIAG 501 and replace its size (used when reading/writing the instruction) with a sizeof() operator to make the code self explaining and less error-prone. Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'target-s390x/cpu.c')
0 files changed, 0 insertions, 0 deletions