From 5df8763ecfbef2969ea4d0fbdc41c3b585b85448 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 7 Jan 2013 14:37:33 +0100 Subject: [PATCH] Print out 24 bit addresses instead of 16 bit addresses --- se/sics/mspsim/util/SimpleProfiler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/se/sics/mspsim/util/SimpleProfiler.java b/se/sics/mspsim/util/SimpleProfiler.java index aadc57a..f08b46f 100644 --- a/se/sics/mspsim/util/SimpleProfiler.java +++ b/se/sics/mspsim/util/SimpleProfiler.java @@ -381,14 +381,14 @@ public class SimpleProfiler implements Profiler, EventListener { public void printStackTrace(PrintStream out) { int stackCount = cSP; out.println("Stack Trace: number of calls: " + stackCount - + " PC: $" + Utils.hex(cpu.getPC(), 4)); + + " PC: $" + Utils.hex(cpu.getPC(), 5)); for (int i = 0; i < stackCount; i++) { CallEntry call = callStack[stackCount - i - 1]; out.println(" " + call.function.getInfo() - + " called from PC: $" + Utils.hex(call.fromPC, 4) + + " called from PC: $" + Utils.hex(call.fromPC, 5) + " (elapsed: " + (cpu.cpuCycles - call.cycles) + ')'); if (stackCount - i - 1 == interruptLevel && servicedInterrupt != -1) { - out.println(" *** Interrupt " + servicedInterrupt + " from PC: $" + Utils.hex(interruptFrom, 4)); + out.println(" *** Interrupt " + servicedInterrupt + " from PC: $" + Utils.hex(interruptFrom, 5)); } } }