提交 8c5edce5 编写于 作者: M Michael Walle

lm32_sys: dump cpu state if test case fails

This will ease debugging the test cases.
Signed-off-by: NMichael Walle <michael@walle.cc>
上级 9a59e6e3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册