]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
s390x: remove duplicate definitions of DIAG 501
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 25 Feb 2014 14:58:45 +0000 (15:58 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 20 May 2014 11:05:58 +0000 (13:05 +0200)
commit8e4e86afa524588397be2101c3582c897fc408df
treee69edd29fdbc4bba178afa03a2a4d5938cafc439
parent76eb98d51c0a0448c5bc2f70d15fe334e7234964
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>
target-s390x/kvm.c