aboutsummaryrefslogtreecommitdiff
path: root/sim/cr16/cr16_sim.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-30 00:13:38 -0400
committerMike Frysinger <vapier@gentoo.org>2015-03-30 00:13:38 -0400
commit247ac9ee6e1ecea67d29a5712e77e8c64834b06e (patch)
treef19828be7f4c661ffc0fc2f1c70e47e165782fcf /sim/cr16/cr16_sim.h
parent4b0cc5edf489335509e155b5af0a0e754f4e3df9 (diff)
downloadgdb-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.h9
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 */