This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: clean up SIM_HAVE_BIENDIAN
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Date: Tue, 24 Mar 2015 00:40:37 -0400
- Subject: [PATCH] sim: clean up SIM_HAVE_BIENDIAN
- Authentication-results: sourceware.org; auth=none
This define only applies when using the old run.o main. Document it as
such, and delete it from mips/sh64 since both use nrun.o now.
Committed.
---
sim/common/ChangeLog | 4 ++++
sim/common/tconfig.h | 3 ++-
sim/mips/ChangeLog | 5 +++++
sim/mips/sim-main.h | 3 ---
sim/mips/tconfig.h | 4 ----
sim/sh64/ChangeLog | 4 ++++
sim/sh64/tconfig.h | 3 ---
7 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 655d98a..c474abe 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2015-03-24 Mike Frysinger <vapier@gentoo.org>
+ * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
+
+2015-03-24 Mike Frysinger <vapier@gentoo.org>
+
* acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
of enable_sim_hardware to AC_ARG_ENABLE.
diff --git a/sim/common/tconfig.h b/sim/common/tconfig.h
index fd8b5be..4df076e 100644
--- a/sim/common/tconfig.h
+++ b/sim/common/tconfig.h
@@ -15,5 +15,6 @@
/* #define SIM_HAVE_SIMCACHE */
/* Define this if the target cpu is bi-endian
- and the simulator supports it. */
+ and the simulator supports it.
+ TODO: This is specific to the old run.o main. */
/* #define SIM_HAVE_BIENDIAN */
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index d5f8ec0..996144d 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,5 +1,10 @@
2015-03-24 Mike Frysinger <vapier@gentoo.org>
+ * sim-main.h (SIM_HAVE_BIENDIAN): Delete.
+ * tconfig.h (SIM_HAVE_BIENDIAN): Delete.
+
+2015-03-24 Mike Frysinger <vapier@gentoo.org>
+
* configure: Regenerate.
2015-03-23 Mike Frysinger <vapier@gentoo.org>
diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h
index 53acf68..3c0e9bb 100644
--- a/sim/mips/sim-main.h
+++ b/sim/mips/sim-main.h
@@ -24,9 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* #define SIM_ENGINE_HALT_HOOK(SD, LAST_CPU, CIA) */
/* #define SIM_ENGINE_RESUME_HOOK(SD, LAST_CPU, CIA) */
-#define SIM_HAVE_BIENDIAN
-
-
/* hobble some common features for moment */
#define WITH_WATCHPOINTS 1
#define WITH_MODULO_MEMORY 1
diff --git a/sim/mips/tconfig.h b/sim/mips/tconfig.h
index 95e66b4..fd97c3c 100644
--- a/sim/mips/tconfig.h
+++ b/sim/mips/tconfig.h
@@ -19,9 +19,5 @@
The target is required to provide sim_set_simcache_size. */
/* #define SIM_HAVE_SIMCACHE */
-/* Define this if the target cpu is bi-endian
- and the simulator supports it. */
-#define SIM_HAVE_BIENDIAN
-
/* MIPS uses an unusual format for floating point quiet NaNs. */
#define SIM_QUIET_NAN_NEGATED
diff --git a/sim/sh64/ChangeLog b/sim/sh64/ChangeLog
index 8692f0f..beda6be 100644
--- a/sim/sh64/ChangeLog
+++ b/sim/sh64/ChangeLog
@@ -1,5 +1,9 @@
2015-03-24 Mike Frysinger <vapier@gentoo.org>
+ * tconfig.h (SIM_HAVE_BIENDIAN): Delete.
+
+2015-03-24 Mike Frysinger <vapier@gentoo.org>
+
* configure: Regenerate.
2015-03-24 Mike Frysinger <vapier@gentoo.org>
diff --git a/sim/sh64/tconfig.h b/sim/sh64/tconfig.h
index 9d64be9..dbcf232 100644
--- a/sim/sh64/tconfig.h
+++ b/sim/sh64/tconfig.h
@@ -34,6 +34,3 @@
and -pbb. However some cpu families may use -simple while others use
one of -scache/-pbb. ???? */
#define WITH_SCACHE_PBB 1
-
-/* Define this if the target cpu is bi-endian and the simulator supports it. */
-#define SIM_HAVE_BIENDIAN
--
2.3.3