[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH] SPARC: Trivial patch to clean up npc monitor outp

From: Nathan Kunkee
Subject: [Qemu-trivial] [PATCH] SPARC: Trivial patch to clean up npc monitor output
Date: Thu, 8 Sep 2011 21:58:31 -0500
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20110425 Lightning/1.0b2 Thunderbird/3.1.4

This patch fixes the spacing of the PC and NPC output from 'info cpus' for SPARC.

Signed-off-by: Nathan Kunkee <address@hidden>

diff --git a/monitor.c b/monitor.c
index 1b8ba2c..16cd4c5 100644
--- a/monitor.c
+++ b/monitor.c
@@ -884,9 +884,9 @@ static void print_cpu_iter(QObject *obj, void *opaque)
     monitor_printf(mon, "nip=0x" TARGET_FMT_lx,
                    (target_long) qdict_get_int(cpu, "nip"));
 #elif defined(TARGET_SPARC)
-    monitor_printf(mon, "pc=0x " TARGET_FMT_lx,
+    monitor_printf(mon, "pc=0x" TARGET_FMT_lx,
                    (target_long) qdict_get_int(cpu, "pc"));
-    monitor_printf(mon, "npc=0x" TARGET_FMT_lx,
+    monitor_printf(mon, " npc=0x" TARGET_FMT_lx,
                    (target_long) qdict_get_int(cpu, "npc"));
 #elif defined(TARGET_MIPS)
     monitor_printf(mon, "PC=0x" TARGET_FMT_lx,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]