aboutsummaryrefslogtreecommitdiff
path: root/target-arm/translate.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-09 18:08:01 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-09 18:08:01 +0000
commit7fe48483cd90401de2477733ce65037ee0ed0906 (patch)
tree8c3fe5c0ffda5348071a085fa82f1b5dffd9f163 /target-arm/translate.c
parent8e3a9fd28059821f819295fe9178435990141924 (diff)
monitor fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1110 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/translate.c')
-rw-r--r--target-arm/translate.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c
index 3185286bbc..69bc8e224b 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -824,18 +824,20 @@ void cpu_arm_close(CPUARMState *env)
free(env);
}
-void cpu_arm_dump_state(CPUARMState *env, FILE *f, int flags)
+void cpu_dump_state(CPUState *env, FILE *f,
+ int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
+ int flags)
{
int i;
for(i=0;i<16;i++) {
- fprintf(f, "R%02d=%08x", i, env->regs[i]);
+ cpu_fprintf(f, "R%02d=%08x", i, env->regs[i]);
if ((i % 4) == 3)
- fprintf(f, "\n");
+ cpu_fprintf(f, "\n");
else
- fprintf(f, " ");
+ cpu_fprintf(f, " ");
}
- fprintf(f, "PSR=%08x %c%c%c%c\n",
+ cpu_fprintf(f, "PSR=%08x %c%c%c%c\n",
env->cpsr,
env->cpsr & (1 << 31) ? 'N' : '-',
env->cpsr & (1 << 30) ? 'Z' : '-',