From: Luke Kenneth Casson Leighton Date: Thu, 27 May 2021 10:30:37 +0000 (+0100) Subject: whoops inverted logic on qemu endian set X-Git-Tag: xlen-bcd~534 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e0cf60879f66829a4738388f0f564e38a3fc626;p=openpower-isa.git whoops inverted logic on qemu endian set --- diff --git a/src/openpower/decoder/isa/pypowersim.py b/src/openpower/decoder/isa/pypowersim.py index 9bdec27b..52074b8b 100644 --- a/src/openpower/decoder/isa/pypowersim.py +++ b/src/openpower/decoder/isa/pypowersim.py @@ -219,8 +219,8 @@ def run_tst(args, generator, qemu, except KeyError: # indicates instruction not in imem: stop _pc, _insn = (None, None) qemu.step() - if _pc and not simulator.halted: - qemu.set_endian(True) + if not _pc or simulator.halted: + qemu.set_endian(False) qemu_register_compare(simulator, qemu, range(32), range(32)) if _pc is None: break