diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-06-09 23:38:15 +0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-06-11 10:13:49 -0400 |
commit | 926b1cd8cffbcd8cf2d37e779463a4e7e696f73b (patch) | |
tree | bb658c4c5235bc47234c1e4a53ae26923adee067 /sim/mn10300/mn10300_sim.h | |
parent | 6449ed0d3a78ba8c25e8a634f8d6ed120a4cac7f (diff) | |
download | gdb-926b1cd8cffbcd8cf2d37e779463a4e7e696f73b.zip gdb-926b1cd8cffbcd8cf2d37e779463a4e7e696f73b.tar.gz gdb-926b1cd8cffbcd8cf2d37e779463a4e7e696f73b.tar.bz2 |
sim: mn10300: delete unused memory code
Only one place used get_word/put_word, so inline the usage there.
All the rest is dead code so trim it.
Diffstat (limited to 'sim/mn10300/mn10300_sim.h')
-rw-r--r-- | sim/mn10300/mn10300_sim.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sim/mn10300/mn10300_sim.h b/sim/mn10300/mn10300_sim.h index 23b8cc2..f021aee 100644 --- a/sim/mn10300/mn10300_sim.h +++ b/sim/mn10300/mn10300_sim.h @@ -47,7 +47,6 @@ struct _state reg_t fs[32]; /* FS0-31 */ dword fd[16]; /* FD0,2,...,30 */ } fpregs; - uint8 *mem; /* main memory */ /* All internal state modified by signal_exception() that may need to be rolled back for passing moment-of-exception image back to gdb. */ @@ -61,8 +60,6 @@ struct _state }; extern struct _state State; -extern uint32 OP[4]; -extern struct simops Simops[]; #define PC (State.regs[REG_PC]) #define SP (State.regs[REG_SP]) @@ -197,15 +194,6 @@ dw2u64 (dword data) /* Function declarations. */ -uint32 get_word (uint8 *); -uint16 get_half (uint8 *); -uint8 get_byte (uint8 *); -void put_word (uint8 *, uint32); -void put_half (uint8 *, uint16); -void put_byte (uint8 *, uint8); - -extern uint8 *map (SIM_ADDR addr); - INLINE_SIM_MAIN (void) genericAdd (unsigned32 source, unsigned32 destReg); INLINE_SIM_MAIN (void) genericSub (unsigned32 source, unsigned32 destReg); INLINE_SIM_MAIN (void) genericCmp (unsigned32 leftOpnd, unsigned32 rightOpnd); |