aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m32c/cpu.h')
-rw-r--r--sim/m32c/cpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/m32c/cpu.h b/sim/m32c/cpu.h
index eae4cd5..e11d5ef 100644
--- a/sim/m32c/cpu.h
+++ b/sim/m32c/cpu.h
@@ -23,6 +23,8 @@ extern int verbose;
extern int trace;
extern int enable_counting;
+extern int in_gdb;
+
typedef unsigned char QI;
typedef unsigned short HI;
typedef unsigned long SI;
@@ -101,6 +103,10 @@ extern unsigned int b2signbit[];
extern int b2maxsigned[];
extern int b2minsigned[];
+/* address of the opcode that just decoded, and thus caused the
+ exception. */
+extern int m32c_opcode_pc;
+
void init_regs (void);
void stack_heap_stats (void);
void set_pointer_width (int bytes);