aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/v850/Makefile.in4
-rw-r--r--sim/v850/sim-main.h2
-rw-r--r--sim/v850/simops.c2
3 files changed, 2 insertions, 6 deletions
diff --git a/sim/v850/Makefile.in b/sim/v850/Makefile.in
index 4c2d278..ab42145 100644
--- a/sim/v850/Makefile.in
+++ b/sim/v850/Makefile.in
@@ -27,8 +27,4 @@ SIM_OBJS = \
# Generally this consists of simulator specific files included by sim-main.h.
SIM_EXTRA_DEPS = v850_sim.h sim-main.h
-# List of flags to always pass to $(CC)
-SIM_EXTRA_CFLAGS = \
- -DDEBUG
-
## COMMON_POST_CONFIG_FRAG
diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h
index 49b845d..ab7e47a 100644
--- a/sim/v850/sim-main.h
+++ b/sim/v850/sim-main.h
@@ -435,7 +435,7 @@ enum op_types
OP_PUSHPOP3,
};
-#ifdef DEBUG
+#if WITH_TRACE_ANY_P
void trace_input (char *name, enum op_types type, int size);
void trace_output (enum op_types result);
void trace_result (int has_result, uint32_t result);
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 573ece5..1d5403b 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -39,7 +39,7 @@ int type2_regs[16] = { 3, 2, 1, 0, 27, 26, 25, 24, 31, 30, 29, 28, 23, 22, 20, 2
that order in a push/pop instruction. */
int type3_regs[15] = { 2, 1, 0, 27, 26, 25, 24, 31, 30, 29, 28, 23, 22, 20, 21};
-#ifdef DEBUG
+#if WITH_TRACE_ANY_P
#ifndef SIZE_INSTRUCTION
#define SIZE_INSTRUCTION 18
#endif