X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2For1k%2Fsim-if.c;h=06d7dcb61b238a0b47ea1ccad22c095e3d58ef74;hb=f9a4d54332f9e1f75701ba43249a03cc631ec736;hp=e6342ee42c0f7b9e8496b86bfc66231d21d55743;hpb=4470708442cef1c818c4322f975d9017307f0243;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/or1k/sim-if.c b/sim/or1k/sim-if.c index e6342ee42c..06d7dcb61b 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) {