]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: clean up duplicate sim-engine hooks
authorMike Frysinger <vapier@gentoo.org>
Sat, 18 Apr 2015 08:38:33 +0000 (04:38 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 18 Apr 2015 08:40:27 +0000 (04:40 -0400)
Now that we've unified sim-cpu, we can delete the duplicate sim-engine
hooks -- these targets defined these only because they didn't fully
implement the sim-cpu callbacks.

sim/cris/ChangeLog
sim/cris/sim-main.h
sim/lm32/ChangeLog
sim/lm32/sim-main.h
sim/m32r/ChangeLog
sim/m32r/sim-main.h
sim/mips/ChangeLog
sim/mips/sim-main.h

index f3e0dbdf512d4adc02a0d0b00a4fda52079788b3..23c739d3758fe2e981ea694b5af1ed08beb25ece 100644 (file)
@@ -1,3 +1,7 @@
+2015-04-18  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESTART_HOOK): Delete.
+
 2015-04-18  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-main.h (USING_SIM_BASE_H): Delete.
index d1a7c1e7b25fbbbbab83b3902ea403a94db54a1f..4dc04a2caa605971716735db1d942b84fe3bf6cf 100644 (file)
@@ -30,17 +30,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "cris-desc.h"
 #include "cris-opc.h"
 #include "arch.h"
-
-#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \
-do { \
-  if (cpu) /* Null if ctrl-c.  */ \
-    sim_pc_set ((cpu), (cia)); \
-} while (0)
-#define SIM_ENGINE_RESTART_HOOK(sd, cpu, cia) \
-do { \
-  sim_pc_set ((cpu), (cia)); \
-} while (0)
-
 #include "sim-base.h"
 #include "cgen-sim.h"
 #include "cris-sim.h"
index 77f9b811562feef1534bf6efa90e5f36e8d2924d..4cb55c555b8663bba8285bd05dc4951d5f57daa0 100644 (file)
@@ -1,3 +1,7 @@
+2015-04-18  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESTART_HOOK): Delete.
+
 2015-04-18  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-main.h (USING_SIM_BASE_H): Delete.
index a25c7dd85daf46d3d0f49090fb67099e523f96be..4894e8d65b7f336956cd50a70db4eb35b83a135d 100644 (file)
 #include "lm32-desc.h"
 #include "lm32-opc.h"
 #include "arch.h"
-
-#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \
-do { \
-  if (cpu) /* null if ctrl-c */ \
-    sim_pc_set ((cpu), (cia)); \
-} while (0)
-#define SIM_ENGINE_RESTART_HOOK(sd, cpu, cia) \
-do { \
-  sim_pc_set ((cpu), (cia)); \
-} while (0)
-
 #include "sim-base.h"
 #include "cgen-sim.h"
 #include "lm32-sim.h"
index 397f3a852fc3878e6a3788bf83a141080870b265..c85b181af728d109e0866ba4f5e92686890e1b93 100644 (file)
@@ -1,3 +1,7 @@
+2015-04-18  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESTART_HOOK): Delete.
+
 2015-04-18  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-main.h (USING_SIM_BASE_H): Delete.
index 0f539a0f7387780eac76b70a92cf2755b43870fa..cd39e98c021d0896d3ac809a12675eeeee18e203 100644 (file)
@@ -9,17 +9,6 @@
 #include "m32r-desc.h"
 #include "m32r-opc.h"
 #include "arch.h"
-
-#define SIM_ENGINE_HALT_HOOK(sd, cpu, cia) \
-do { \
-  if (cpu) /* null if ctrl-c */ \
-    sim_pc_set ((cpu), (cia)); \
-} while (0)
-#define SIM_ENGINE_RESTART_HOOK(sd, cpu, cia) \
-do { \
-  sim_pc_set ((cpu), (cia)); \
-} while (0)
-
 #include "sim-base.h"
 #include "cgen-sim.h"
 #include "m32r-sim.h"
index 51b4b297166db18560cb5be046fe02ca472a289d..1feeb83d5b1a24510decd469ba56db31af91d761 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-18  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESTART_HOOK): Delete
+       comments.
+
 2015-04-18  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-main.h (SIM_CPU): Delete.
index e6bbd518c04d8c2141e7bdf19210982fa00621a5..c87b8e67b8ff3bcb84c0c07e6e45aed4c808cf90 100644 (file)
@@ -20,10 +20,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef SIM_MAIN_H
 #define SIM_MAIN_H
 
-/* This simulator doesn't cache the Current Instruction Address */
-/* #define SIM_ENGINE_HALT_HOOK(SD, LAST_CPU, CIA) */
-/* #define SIM_ENGINE_RESUME_HOOK(SD, LAST_CPU, CIA) */
-
 /* hobble some common features for moment */
 #define WITH_WATCHPOINTS 1
 #define WITH_MODULO_MEMORY 1