whoops missing argument
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 1 Jun 2021 13:42:39 +0000 (14:42 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 1 Jun 2021 13:42:39 +0000 (14:42 +0100)
src/openpower/decoder/isa/pypowersim.py

index 9938087774498cb129e1bd19e69a5966ec3c3ba9..4c3242bf8e0f2c9a0b1e3e8c5358b58133175f5f 100644 (file)
@@ -37,7 +37,7 @@ def write_data(mem, fname, offset, sz):
             val = mem.ld(addr, 8)
             f.write(struct.pack('>Q', val)) # unsigned long
 
-def sim_check_data(simulator, qemu, check_addr):
+def sim_check_data(simulator, qemu, check_addr, msg):
     addr = check_addr & ~0x7 # align
     sim_data = simulator.mem.ld(addr, 8, swap=False)
     qdata = qemu.get_mem(addr, 8)[0]
@@ -241,7 +241,7 @@ def run_tst(args, generator, qemu,
                 check_addr = simulator.last_ld_addr
                 msg = "ld"
             if check_addr is not None:
-                sim_check_data(simulator, qemu, check_addr)
+                sim_check_data(simulator, qemu, check_addr, msg)
             if _pc is None:
                 break