diff options
Diffstat (limited to 'sim/tic80')
-rw-r--r-- | sim/tic80/ChangeLog | 6 | ||||
-rw-r--r-- | sim/tic80/alu.h | 15 | ||||
-rw-r--r-- | sim/tic80/configure.in | 1 | ||||
-rw-r--r-- | sim/tic80/sim-calls.c | 2 |
4 files changed, 16 insertions, 8 deletions
diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog index 5aebb29..77bda22 100644 --- a/sim/tic80/ChangeLog +++ b/sim/tic80/ChangeLog @@ -1,3 +1,9 @@ +Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * alu.h: Update usage of core object to reflect recent changes in + ../common/sim-*core. + * sim-calls.c (sim_open): Ditto. + Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com> * insn (cmnd): No-op cache flushes. diff --git a/sim/tic80/alu.h b/sim/tic80/alu.h index 3a325e1..d8fb136 100644 --- a/sim/tic80/alu.h +++ b/sim/tic80/alu.h @@ -39,19 +39,18 @@ with this program; if not, write to the Free Software Foundation, Inc., /* Bring data in from the cold */ #define IMEM(EA) \ -(sim_core_read_4(sd, sim_core_execute_map, (EA), \ - STATE_CPU (sd, 0), cia)) +(sim_core_read_aligned_4(STATE_CPU (sd, 0), cia, sim_core_execute_map, (EA))) #define MEM(SIGN, EA, NR_BYTES) \ -((SIGN##_##NR_BYTES) sim_core_read_##NR_BYTES (SD, sim_core_read_map, \ - (EA) & ~(NR_BYTES - 1), \ - STATE_CPU (sd, 0), cia)) +((SIGN##_##NR_BYTES) sim_core_read_unaligned_##NR_BYTES (STATE_CPU (sd, 0), cia, \ + sim_core_read_map, \ + (EA))) #define STORE(EA, NR_BYTES, VAL) \ do { \ - sim_core_write_##NR_BYTES (SD, sim_core_write_map, \ - (EA) & ~(NR_BYTES - 1), (VAL), \ - STATE_CPU (sd, 0), cia); \ + sim_core_write_unaligned_##NR_BYTES (STATE_CPU (sd, 0), cia, \ + sim_core_write_map, \ + (EA), (VAL)); \ } while (0) diff --git a/sim/tic80/configure.in b/sim/tic80/configure.in index d927edf..cb1cde7 100644 --- a/sim/tic80/configure.in +++ b/sim/tic80/configure.in @@ -8,6 +8,7 @@ SIM_AC_COMMON dnl Options available in this module SIM_AC_OPTION_INLINE(0) SIM_AC_OPTION_ENDIAN(LITTLE_ENDIAN) +SIM_AC_OPTION_ALIGNMENT(FORCED_ALIGNMENT) SIM_AC_OPTION_HOSTENDIAN SIM_AC_OPTION_WARNINGS SIM_AC_OPTION_RESERVED_BITS(1) diff --git a/sim/tic80/sim-calls.c b/sim/tic80/sim-calls.c index 438979c..966b71f 100644 --- a/sim/tic80/sim-calls.c +++ b/sim/tic80/sim-calls.c @@ -87,10 +87,12 @@ sim_open (SIM_OPEN_KIND kind, char **argv) /* external memory */ sim_core_attach(&simulation, + NULL, attach_raw_memory, access_read_write_exec, 0, TIC80_MEM_START, TIC80_MEM_SIZE, NULL, NULL); sim_core_attach(&simulation, + NULL, attach_raw_memory, access_read_write_exec, 0, 0, TIC80_MEM_SIZE, NULL, NULL); |