summaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-10-05 15:04:43 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-10-05 15:04:43 +0100
commit6fd2a026fbf46ed5927a57e3e043a2039a0651d0 (patch)
treeaeaab674498c6e1b6d10404da5d6371a2c5d6f74 /cpus.c
parenta14c74928ba1fdaada515717f4d3c3fa3275d6f7 (diff)
downloadqemu-6fd2a026fbf46ed5927a57e3e043a2039a0651d0.tar.gz
qemu-6fd2a026fbf46ed5927a57e3e043a2039a0651d0.tar.bz2
qemu-6fd2a026fbf46ed5927a57e3e043a2039a0651d0.zip
cpu_dump_state: move DUMP_FPU and DUMP_CCOP flags from x86-only to generic
Move the DUMP_FPU and DUMP_CCOP flags for cpu_dump_state() from being x86-specific flags to being generic ones. This allows us to drop some TARGET_I386 ifdefs in various places, and means that we can (potentially) be more consistent across architectures about which monitor commands or debug abort printouts include FPU register contents and info about QEMU's condition-code optimisations. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpus.c b/cpus.c
index 4b726ef4e7..5ba87fe0cc 100644
--- a/cpus.c
+++ b/cpus.c
@@ -395,11 +395,7 @@ void hw_error(const char *fmt, ...)
fprintf(stderr, "\n");
for(env = first_cpu; env != NULL; env = env->next_cpu) {
fprintf(stderr, "CPU #%d:\n", env->cpu_index);
-#ifdef TARGET_I386
- cpu_dump_state(env, stderr, fprintf, X86_DUMP_FPU);
-#else
- cpu_dump_state(env, stderr, fprintf, 0);
-#endif
+ cpu_dump_state(env, stderr, fprintf, CPU_DUMP_FPU);
}
va_end(ap);
abort();