aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/frv.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-03 00:36:13 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-03 00:52:51 -0500
commit0cb8d8513cf44a102953ff5cf93e9dd399f42e9a (patch)
tree670e19c289dea5ba0a821d97709073078fc24e6d /sim/frv/frv.c
parent1ac72f0659d64d6a14da862242db0d841d2878d0 (diff)
downloadgdb-0cb8d8513cf44a102953ff5cf93e9dd399f42e9a.zip
gdb-0cb8d8513cf44a102953ff5cf93e9dd399f42e9a.tar.gz
gdb-0cb8d8513cf44a102953ff5cf93e9dd399f42e9a.tar.bz2
sim: drop host endian configure option
The --enable-sim-hostendian flag was purely so people had an escape route for when cross-compiling. This is because historically, AC_C_BIGENDIAN did not work in those cases. That was fixed a while ago though, so we can require that macro everywhere now and simplify a good bit of code.
Diffstat (limited to 'sim/frv/frv.c')
-rw-r--r--sim/frv/frv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/frv/frv.c b/sim/frv/frv.c
index 594931f..a9dbac9 100644
--- a/sim/frv/frv.c
+++ b/sim/frv/frv.c
@@ -303,7 +303,7 @@ frvbf_h_fr_double_get_handler (SIM_CPU *current_cpu, UINT fr)
/* Check the register alignment. */
fr = check_fr_register_alignment (current_cpu, fr, 1);
- if (CURRENT_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
{
value.as_sf[1] = GET_H_FR (fr);
value.as_sf[0] = GET_H_FR (fr + 1);
@@ -329,7 +329,7 @@ frvbf_h_fr_double_set_handler (SIM_CPU *current_cpu, UINT fr, DF newval)
fr = check_fr_register_alignment (current_cpu, fr, 1);
value.as_df = newval;
- if (CURRENT_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
{
SET_H_FR (fr , value.as_sf[1]);
SET_H_FR (fr + 1, value.as_sf[0]);