OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a59e6e
)
lm32_sys: dump cpu state if test case fails
author
Michael Walle
<michael@walle.cc>
Mon, 23 Sep 2013 18:53:04 +0000
(20:53 +0200)
committer
Michael Walle
<michael@walle.cc>
Tue, 4 Feb 2014 18:47:39 +0000
(19:47 +0100)
This will ease debugging the test cases.
Signed-off-by: Michael Walle <michael@walle.cc>
hw/misc/lm32_sys.c
patch
|
blob
|
history
diff --git
a/hw/misc/lm32_sys.c
b/hw/misc/lm32_sys.c
index
b2e157c
..
e394f2e
100644
(file)
--- a/
hw/misc/lm32_sys.c
+++ b/
hw/misc/lm32_sys.c
@@
-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;