mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
lm32_sys: dump cpu state if test case fails
This will ease debugging the test cases. Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
@@ -82,6 +82,9 @@ static void sys_write(void *opaque, hwaddr addr,
|
||||
testname = (char *)s->testname;
|
||||
fprintf(stderr, "TC %-*s %s\n", MAX_TESTNAME_LEN,
|
||||
testname, (value) ? "FAILED" : "OK");
|
||||
if (value) {
|
||||
cpu_dump_state(qemu_get_cpu(0), stderr, fprintf, 0);
|
||||
}
|
||||
break;
|
||||
case R_TESTNAME:
|
||||
s->regs[addr] = value;
|
||||
|
||||
Reference in New Issue
Block a user