Skip to contentSkip to conversation

SPARC: Trivial patch to clean up npc monitor output

PATCH Applied Nathan Kunkee 2 participants 2 messages Sep 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SPARC: Trivial patch to clean up npc monitor output

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

monitor.c +2 -2
index 1b8ba2c..16cd4c5 100644
@@ -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,