diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-11-15 15:57:10 -0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-11-15 21:48:06 -0500 |
commit | 761e171ad834a0d0adcd8712fde85ab1325afc3a (patch) | |
tree | d6f6c1b2d0151d271464c75902aa4b6f1e8f8649 /sim/cr16/simops.c | |
parent | 267b3b8e068f5043419991175bdbc56eb7a575be (diff) | |
download | gdb-761e171ad834a0d0adcd8712fde85ab1325afc3a.zip gdb-761e171ad834a0d0adcd8712fde85ab1325afc3a.tar.gz gdb-761e171ad834a0d0adcd8712fde85ab1325afc3a.tar.bz2 |
sim: cr16: convert to common sim memory modules
The cr16 port has a lot of translation/offset logic baked into it, but
it all looks like copy & paste from the d10v port rather than something
the cr16 port wants.
Diffstat (limited to 'sim/cr16/simops.c')
-rw-r--r-- | sim/cr16/simops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/cr16/simops.c b/sim/cr16/simops.c index b452ee0..db595f1 100644 --- a/sim/cr16/simops.c +++ b/sim/cr16/simops.c @@ -5143,7 +5143,7 @@ OP_C_C (SIM_DESC sd, SIM_CPU *cpu) /* Turn a pointer in a register into a pointer into real memory. */ -#define MEMPTR(x) ((char *)(dmem_addr (sd, cpu, x))) +#define MEMPTR(x) sim_core_trans_addr (sd, cpu, read_map, x) switch (FUNC) { |