[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] show register info for all cpus
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH] show register info for all cpus |
Date: |
Thu, 24 Jul 2008 15:25:58 -0300 |
Currently, we only do a register dump for mon_cpu().
Modify do_info_registers() in order to show what's
going on in all of them.
Signed-off-by: Glauber Costa <address@hidden>
---
qemu/monitor.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/qemu/monitor.c b/qemu/monitor.c
index 20dcca6..045eecb 100644
--- a/qemu/monitor.c
+++ b/qemu/monitor.c
@@ -292,16 +292,20 @@ static CPUState *mon_get_cpu(void)
static void do_info_registers(void)
{
CPUState *env;
- env = mon_get_cpu();
- if (!env)
- return;
+
+ mon_get_cpu();
+
+ for(env = first_cpu; env != NULL; env = env->next_cpu) {
+ term_printf("CPU: %d\n", env->cpu_index);
#ifdef TARGET_I386
- cpu_dump_state(env, NULL, monitor_fprintf,
- X86_DUMP_FPU);
+ cpu_dump_state(env, NULL, monitor_fprintf,
+ X86_DUMP_FPU);
#else
- cpu_dump_state(env, NULL, monitor_fprintf,
- 0);
+ cpu_dump_state(env, NULL, monitor_fprintf,
+ 0);
#endif
+ }
+ term_printf("\n");
}
static void do_info_cpus(void)
--
1.5.5.1
- [Qemu-devel] [PATCH] show register info for all cpus,
Glauber Costa <=