diff options
Diffstat (limited to 'sim/or1k/sim-if.c')
-rw-r--r-- | sim/or1k/sim-if.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/or1k/sim-if.c b/sim/or1k/sim-if.c index e6342ee..06d7dcb 100644 --- a/sim/or1k/sim-if.c +++ b/sim/or1k/sim-if.c @@ -160,6 +160,9 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, char c; int i; + /* Set default options before parsing user options. */ + current_target_byte_order = BFD_ENDIAN_BIG; + /* The cpu data is kept in a separately allocated chunk of memory. */ if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK) { |