diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-30 00:13:38 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-30 00:13:38 -0400 |
commit | 247ac9ee6e1ecea67d29a5712e77e8c64834b06e (patch) | |
tree | f19828be7f4c661ffc0fc2f1c70e47e165782fcf /sim/cr16/cr16_sim.h | |
parent | 4b0cc5edf489335509e155b5af0a0e754f4e3df9 (diff) | |
download | gdb-247ac9ee6e1ecea67d29a5712e77e8c64834b06e.zip gdb-247ac9ee6e1ecea67d29a5712e77e8c64834b06e.tar.gz gdb-247ac9ee6e1ecea67d29a5712e77e8c64834b06e.tar.bz2 |
sim: cr16: convert to nrun
A lot of cpu state is stored in global variables, as is memory handling.
The sim_size support needs unwinding at some point. But at least this
is an improvement on the status quo.
Diffstat (limited to 'sim/cr16/cr16_sim.h')
-rw-r--r-- | sim/cr16/cr16_sim.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sim/cr16/cr16_sim.h b/sim/cr16/cr16_sim.h index 8598193..5e0eabe 100644 --- a/sim/cr16/cr16_sim.h +++ b/sim/cr16/cr16_sim.h @@ -285,10 +285,6 @@ extern host_callback *cr16_callback; extern uint32 OP[4]; extern uint32 sign_flag; extern struct simops Simops[]; -extern asection *text; -extern bfd_vma text_start; -extern bfd_vma text_end; -extern bfd *prog_bfd; enum { @@ -403,6 +399,11 @@ enum #define SIG_CR16_BUS -3 #define SIG_CR16_IAD -4 +/* TODO: Resolve conflicts with common headers. */ +#undef SEXT8 +#undef SEXT16 +#undef SEXT32 + #define SEXT3(x) ((((x)&0x7)^(~3))+4) /* sign-extend a 4-bit number */ |