aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300/mn10300_sim.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-06 21:19:37 +0000
committerJeff Law <law@redhat.com>1996-12-06 21:19:37 +0000
commitd2523010290da3f2aabace669a8d508ceb02bc92 (patch)
treeefcea2360b7cc5822f033ea01c8e3a318b168be0 /sim/mn10300/mn10300_sim.h
parent1bcfe5fa30bb4f745189f6d5055ce2088aaae839 (diff)
downloadgdb-d2523010290da3f2aabace669a8d508ceb02bc92.zip
gdb-d2523010290da3f2aabace669a8d508ceb02bc92.tar.gz
gdb-d2523010290da3f2aabace669a8d508ceb02bc92.tar.bz2
* gencode.c (write_header): Add "insn" and "extension" arguments
to the OP_* declarations. (write_template): Similarly for function templates. * interp.c (insn, extension): Remove global variables. Instead pass them as arguments to the OP_* functions. * mn10300_sim.h: Remove decls for "insn" and "extension". * simops.c (OP_*): Accept "insn" and "extension" as arguments instead of using globals. Starting to clean things up.
Diffstat (limited to 'sim/mn10300/mn10300_sim.h')
-rw-r--r--sim/mn10300/mn10300_sim.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/mn10300/mn10300_sim.h b/sim/mn10300/mn10300_sim.h
index 8c6a216..abeaa43 100644
--- a/sim/mn10300/mn10300_sim.h
+++ b/sim/mn10300/mn10300_sim.h
@@ -59,7 +59,7 @@ struct simops
struct _state
{
- reg_t regs[10]; /* registers, d0-d3, a0-a3, sp, mdr */
+ reg_t regs[12]; /* registers, d0-d3, a0-a3, sp, mdr, lar, lir */
reg_t sregs[8]; /* system registers, including psw */
reg_t pc;
uint8 *mem; /* main memory */
@@ -68,7 +68,6 @@ struct _state
extern uint32 OP[4];
extern struct simops Simops[];
-extern unsigned long insn, extension;
#define PC (State.pc)
@@ -82,6 +81,8 @@ extern unsigned long insn, extension;
#define REG_A0 4
#define REG_SP 8
#define REG_MDR 9
+#define REG_LAR 10
+#define REG_LIR 11
#define SEXT3(x) ((((x)&0x7)^(~0x3))+0x4)