From e41415aa6e06b25c37a0cfb68fb335e69aa53f91 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 2 Jun 2021 13:33:31 +0100 Subject: [PATCH] add commented-out debug prints --- src/openpower/decoder/isa/pypowersim.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openpower/decoder/isa/pypowersim.py b/src/openpower/decoder/isa/pypowersim.py index 4c3242bf..424fa0e2 100644 --- a/src/openpower/decoder/isa/pypowersim.py +++ b/src/openpower/decoder/isa/pypowersim.py @@ -149,6 +149,12 @@ def run_tst(args, generator, qemu, initial_regs=initial_regs, initial_fprs=initial_fprs) for reg, val in qemu._get_registers().items(): log ("qemu reg", reg, hex(val)) + if True: + offs, length = 0x200000, 0x200 + qmem = qemu.get_mem(offs, length) + log("qemu mem pre-dump", hex(offs), length) + for i, data in enumerate(qmem): + log(hex(offs+i*8), hex(data)) m = Module() comb = m.d.comb @@ -242,6 +248,7 @@ def run_tst(args, generator, qemu, msg = "ld" if check_addr is not None: sim_check_data(simulator, qemu, check_addr, msg) + sim_check_data(simulator, qemu, 0x600800, "dbgld") if _pc is None: break -- 2.30.2