From 7e83aa92f2d986ba60f124287a9fd1e534fbbcf8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 18 Apr 2015 04:08:56 -0400 Subject: sim: unify sim_cia definition Almost every target defines sim_cia the same way -- either using the address_word type directly, or a type of equivalent size. The only odd one out is sh64 (who has 32bit address_word and 64bit cia), and even that case doesn't seem to make sense. We'll put off clean up though of sh64 and at least set up a sensible default for everyone. --- sim/mn10300/ChangeLog | 5 +++++ sim/mn10300/sim-main.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sim/mn10300') diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog index 91aa179..1b649e2 100644 --- a/sim/mn10300/ChangeLog +++ b/sim/mn10300/ChangeLog @@ -1,3 +1,8 @@ +2015-04-18 Mike Frysinger + + * sim-main.h (sim_cia): Delete. + (SIM_ADDR): Delete comment. + 2015-04-17 Mike Frysinger * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Change CIA_GET to diff --git a/sim/mn10300/sim-main.h b/sim/mn10300/sim-main.h index 3781da0..2ddbfb9 100644 --- a/sim/mn10300/sim-main.h +++ b/sim/mn10300/sim-main.h @@ -42,13 +42,8 @@ #include "itable.h" #include "idecode.h" -typedef instruction_address sim_cia; typedef struct _sim_cpu SIM_CPU; -/* FIXME: Perhaps igen should generate access macros for - `instruction_address' that we could use. */ -/*#define CIA_ADDR(cia) ((cia).ip) doesn't work for mn10300*/ - #define WITH_WATCHPOINTS 1 #define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \ -- cgit v1.1