aboutsummaryrefslogtreecommitdiff
path: root/sim/mcore/ChangeLog
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-29 03:53:01 -0400
committerMike Frysinger <vapier@gentoo.org>2015-03-29 04:14:27 -0400
commitea6b7543b422836409fe7848abbfcb452ad26398 (patch)
treec08ac4c055496e198f976e1ef7e586538491cbc3 /sim/mcore/ChangeLog
parent525887679c4de93b8006b5013904dec8d19f12f0 (diff)
downloadfsf-binutils-gdb-ea6b7543b422836409fe7848abbfcb452ad26398.zip
fsf-binutils-gdb-ea6b7543b422836409fe7848abbfcb452ad26398.tar.gz
fsf-binutils-gdb-ea6b7543b422836409fe7848abbfcb452ad26398.tar.bz2
sim: mcore: 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/mcore/ChangeLog')
-rw-r--r--sim/mcore/ChangeLog23
1 files changed, 23 insertions, 0 deletions
diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog
index 88e67d2..132cda8 100644
--- a/sim/mcore/ChangeLog
+++ b/sim/mcore/ChangeLog
@@ -1,5 +1,28 @@
2015-03-29 Mike Frysinger <vapier@gentoo.org>
+ * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS, SIM_EXTRA_LIBS): Delete.
+ (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
+ * interp.c: Include sim-main.h, sim-base.h, and sim-options.h.
+ (word, uword): Move to sim-main.h.
+ (callback, sim_kind, myname): Delete.
+ (struct mcore_regset): Move pc to sim_cpu.
+ (memcycles, sim_size): Mark static.
+ (set_initial_gprs): Take a sim_cpu arg. Set pc via CIA_SET.
+ (handle_trap1): Take a SIM_DESC arg. Get callback from it.
+ (process_stub): Take a SIM_DESC arg. Pass it to handle_trap1
+ (util): Take a SIM_DESC arg. Pass it to process_stub.
+ (sim_resume): Get/set pc via CIA_GET/CIA_SET. Pass sd to handle_trap1
+ and util.
+ (sim_trace, sim_stop, sim_load, sim_set_callbacks): Delete.
+ (sim_info): Get callback from SIM_DESC.
+ (free_state): New cleanup function.
+ (sim_open): Rewrite to use new common logic.
+ (sim_create_inferior): Get sim_cpu from sd. Pass to set_initial_gprs
+ and set pc via CIA_SET.
+ * sim-main.h: New file.
+
+2015-03-29 Mike Frysinger <vapier@gentoo.org>
+
* configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
SIM_AC_OPTION_INLINE.