From 761e171ad834a0d0adcd8712fde85ab1325afc3a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 15 Nov 2015 15:57:10 -0800 Subject: 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. --- sim/cr16/simops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/cr16/simops.c') 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) { -- cgit v1.1