diff options
Diffstat (limited to 'sim/ppc/psim.c')
-rw-r--r-- | sim/ppc/psim.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c index 70c02f7..0c3f5a1 100644 --- a/sim/ppc/psim.c +++ b/sim/ppc/psim.c @@ -64,7 +64,6 @@ struct _psim { int current_target_byte_order; -int current_host_byte_order; int current_environment; int current_alignment; int current_floating_point; @@ -456,14 +455,6 @@ psim_create(const char *file_name, if (CURRENT_TARGET_BYTE_ORDER != current_target_byte_order) error("target and configured byte order conflict\n"); - /* fill in the missing HOST BYTE ORDER information */ - current_host_byte_order = (current_host_byte_order = 1, - (*(char*)(¤t_host_byte_order) - ? LITTLE_ENDIAN - : BIG_ENDIAN)); - if (CURRENT_HOST_BYTE_ORDER != current_host_byte_order) - error("host and configured byte order conflict\n"); - /* fill in the missing OEA/VEA information */ env = tree_find_string_property(root, "/openprom/options/env"); current_environment = ((strcmp(env, "user") == 0 @@ -917,7 +908,7 @@ psim_read_register(psim *system, break; #ifdef WITH_ALTIVEC case 16: - if (CURRENT_HOST_BYTE_ORDER != CURRENT_TARGET_BYTE_ORDER) + if (HOST_BYTE_ORDER != CURRENT_TARGET_BYTE_ORDER) { union { vreg v; unsigned_8 d[2]; } h, t; memcpy(&h.v/*dest*/, cooked_buf/*src*/, description.size); @@ -996,7 +987,7 @@ psim_write_register(psim *system, break; #ifdef WITH_ALTIVEC case 16: - if (CURRENT_HOST_BYTE_ORDER != CURRENT_TARGET_BYTE_ORDER) + if (HOST_BYTE_ORDER != CURRENT_TARGET_BYTE_ORDER) { union { vreg v; unsigned_8 d[2]; } h, t; memcpy(&t.v/*dest*/, buf/*src*/, description.size); |