diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-10-30 22:43:02 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-10-30 22:43:02 +0000 |
commit | b30cdd35653c3ad1ffb93a465972ea9a89928c03 (patch) | |
tree | 0b3e0d5b0da8268687f158e5af4e34db072c8dfd /sim/d10v/d10v_sim.h | |
parent | 193e41979c76e8e4c5793924158cbce854ae4f5c (diff) | |
download | gdb-b30cdd35653c3ad1ffb93a465972ea9a89928c03.zip gdb-b30cdd35653c3ad1ffb93a465972ea9a89928c03.tar.gz gdb-b30cdd35653c3ad1ffb93a465972ea9a89928c03.tar.bz2 |
Fix -t option to work with memory mapping; Print PC in some error messages
Diffstat (limited to 'sim/d10v/d10v_sim.h')
-rw-r--r-- | sim/d10v/d10v_sim.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h index e6d9c4b..49b3edc 100644 --- a/sim/d10v/d10v_sim.h +++ b/sim/d10v/d10v_sim.h @@ -4,6 +4,7 @@ #include "ansidecl.h" #include "callback.h" #include "opcode/d10v.h" +#include "bfd.h" #define DEBUG_TRACE 0x00000001 #define DEBUG_VALUES 0x00000002 @@ -128,6 +129,10 @@ struct _state extern host_callback *d10v_callback; extern uint16 OP[4]; extern struct simops Simops[]; +extern asection *text; +extern bfd_vma text_start; +extern bfd_vma text_end; +extern bfd *exec_bfd; #define PC (State.cregs[2]) #define PSW (State.cregs[0]) @@ -174,6 +179,7 @@ extern struct simops Simops[]; #define INC_ADDR(x,i) x = ((State.MD && x == MOD_E) ? MOD_S : (x)+(i)) extern uint8 *dmem_addr PARAMS ((uint32)); +extern bfd_vma decode_pc PARAMS ((void)); #define RB(x) (*(dmem_addr(x))) #define SB(addr,data) ( RB(addr) = (data & 0xff)) |