From: Luke Kenneth Casson Leighton Date: Wed, 2 Jun 2021 12:32:51 +0000 (+0100) Subject: get qemu FP regs correctly X-Git-Tag: xlen-bcd~491 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c2e24569e7845b2cb0a704dc6b861bf52524f80;p=openpower-isa.git get qemu FP regs correctly --- 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)