[openfirmware] [commit] r2098 - cpu/arm
repository service
svn at openfirmware.info
Sat Jan 1 11:20:48 CET 2011
Author: wmb
Date: Sat Jan 1 11:20:48 2011
New Revision: 2098
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2098
Log:
ARM simulator - allowed compiling-out the tracing code for extra speed.
Modified:
cpu/arm/armsim.c
Modified: cpu/arm/armsim.c
==============================================================================
--- cpu/arm/armsim.c Sat Jan 1 10:56:55 2011 (r2097)
+++ cpu/arm/armsim.c Sat Jan 1 11:20:48 2011 (r2098)
@@ -21,13 +21,13 @@
static u32 trace = 0;
-//#if TRACE
+#if TRACE
#define INSTR(a) if (trace) printf("%s -- %0x N%d Z%d C%d V%d %s\n", \
a, COND, N, Z, C, V, cond ? "true" : "false"); \
if (cond == 0) break
-//#else
-//#define INSTR(a) if (cond == 0) break
-//#endif
+#else
+#define INSTR(a) if (cond == 0) break
+#endif
#define MAXMEM 0x80000
#define MEM(type, adr) *(type *)(&mem[(adr)])
@@ -248,10 +248,10 @@
while (1) {
instruction = MEM(u32, PC - 8);
last_pc = PC;
-//#if TRACE
+#if TRACE
if (trace)
regdump(instruction, last_pc, 0);
-//#endif
+#endif
EVAL_COND(COND);
if (cond == 0xf)
UNIMP("unconditional");
More information about the openfirmware
mailing list