From 2c2e24569e7845b2cb0a704dc6b861bf52524f80 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 2 Jun 2021 13:32:51 +0100 Subject: [PATCH] get qemu FP regs correctly --- src/openpower/simulator/qemu.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openpower/simulator/qemu.py b/src/openpower/simulator/qemu.py index a9eb2954..a00c5647 100644 --- a/src/openpower/simulator/qemu.py +++ b/src/openpower/simulator/qemu.py @@ -26,7 +26,9 @@ def find_uint128(val): val = val.split("=")[1] val = val.split(',')[0].strip() val = int(val, 0) - return swap_order(val, 16) + val = swap_order(val, 16) + val = swap_order(val, 8) + return val class QemuController: @@ -161,7 +163,7 @@ class QemuController: return self.get_register(num) def get_fpr(self, num): - return self.get_register(num+32) + return self.get_register(num+471) def set_gpr(self, reg, val): self._rcache_trash('x %d' % reg) -- 2.30.2