diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-30 00:10:27 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-30 00:10:27 -0400 |
commit | 4b0cc5edf489335509e155b5af0a0e754f4e3df9 (patch) | |
tree | 39a257da3efbfd2f2aaf38ac2b258b4d6c859e10 /sim | |
parent | 1e504675bdabc1861f2b2f515b6be3d99189e165 (diff) | |
download | gdb-4b0cc5edf489335509e155b5af0a0e754f4e3df9.zip gdb-4b0cc5edf489335509e155b5af0a0e754f4e3df9.tar.gz gdb-4b0cc5edf489335509e155b5af0a0e754f4e3df9.tar.bz2 |
sim: cr16: delete NEED_UI_LOOP_HOOK handling
This hook is used only when linked into gdb, and cr16 doesn't have a gdb
port anymore. Punt it.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/cr16/ChangeLog | 7 | ||||
-rw-r--r-- | sim/cr16/Makefile.in | 2 | ||||
-rw-r--r-- | sim/cr16/interp.c | 19 |
3 files changed, 8 insertions, 20 deletions
diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog index 184d803..4564557 100644 --- a/sim/cr16/ChangeLog +++ b/sim/cr16/ChangeLog @@ -1,5 +1,12 @@ 2015-03-29 Mike Frysinger <vapier@gentoo.org> + * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK. + * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL, + ui_loop_hook_counter, deprecated_ui_loop_hook): Delete. + (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code. + +2015-03-29 Mike Frysinger <vapier@gentoo.org> + * interp.c (old_segment_mapping, ins_type_counters, add_commas, set_dmap_register, set_imap_register, HELD_SPI_IDX, HELD_SPU_IDX, spu_register, spi_register, set_spi_register, set_spu_register): diff --git a/sim/cr16/Makefile.in b/sim/cr16/Makefile.in index de85cf8..b5908e7 100644 --- a/sim/cr16/Makefile.in +++ b/sim/cr16/Makefile.in @@ -22,7 +22,7 @@ SIM_RUN_OBJS = run.o SIM_OBJS = interp.o table.o simops.o endian.o sim-load.o SIM_EXTRA_CLEAN = clean-extra -SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_USE_DEPRECATED_RUN_FRONTEND +SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND INCLUDE = cr16_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \ $(srcroot)/include/gdb/sim-cr16.h diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c index c6d55f5..88c4a80 100644 --- a/sim/cr16/interp.c +++ b/sim/cr16/interp.c @@ -56,17 +56,6 @@ extern void sim_set_profile (int n); extern void sim_set_profile_size (int n); static INLINE uint8 *map_memory (unsigned phys_addr); -#ifdef NEED_UI_LOOP_HOOK -/* How often to run the ui_loop update, when in use */ -#define UI_LOOP_POLL_INTERVAL 0x14000 - -/* Counter for the ui_loop_hook update */ -static long ui_loop_hook_counter = UI_LOOP_POLL_INTERVAL; - -/* Actual hook to call to run through gdb's gui event loop */ -extern int (*deprecated_ui_loop_hook) (int signo); -#endif /* NEED_UI_LOOP_HOOK */ - #ifndef INLINE #if defined(__GNUC__) && defined(__OPTIMIZE__) #define INLINE __inline__ @@ -1095,14 +1084,6 @@ sim_resume (SIM_DESC sd, int step, int siggnal) /* Writeback all the DATA / PC changes */ SLOT_FLUSH (); - -#ifdef NEED_UI_LOOP_HOOK - if (deprecated_ui_loop_hook != NULL && ui_loop_hook_counter-- < 0) - { - ui_loop_hook_counter = UI_LOOP_POLL_INTERVAL; - deprecated_ui_loop_hook (0); - } -#endif /* NEED_UI_LOOP_HOOK */ } while ( !State.exception && !stop_simulator); |