aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/asm-generic
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2020-01-30 14:34:17 +0100
committerCornelia Huck <cohuck@redhat.com>2020-02-26 18:57:07 +0100
commit0bab189c96c780341a954186276f9b58ea3244b9 (patch)
tree145a94292264e79f2c98ffc9a10ea39c69429d6d /linux-headers/asm-generic
parentdb736e0437aa6fd7c1b7e4599c17f9619ab6b837 (diff)
target/s390x/translate: Fix RNSBG instruction
RNSBG is handled via the op_rosbg() helper function. But RNSBG has the opcode 0xEC54, i.e. 0x54 as second byte, while op_rosbg() currently checks for 0x55. This seems to be a typo, fix it to use 0x54 instead, so that op_rosbg() does not abort() anymore if a program uses RNSBG. I've checked with a simple test function that I now get the same results with KVM and with TCG: static void test_rnsbg(void) { uint64_t r1, r2; r2 = 0xffff000000000000UL; r1 = 0x123456789bdfaaaaUL; asm volatile (" rnsbg %0,%1,12,61,16 " : "+r"(r1) : "r"(r2)); printf("r1 afterwards: 0x%lx\n", r1); } Buglink: https://bugs.launchpad.net/qemu/+bug/1860920 Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20200130133417.10531-1-thuth@redhat.com> Fixes: d6c6372e186e ("target-s390: Implement R[NOX]SBG") Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'linux-headers/asm-generic')
0 files changed, 0 insertions, 0 deletions