]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/h8300/compile.c
sim: overhaul & unify endian settings management
[thirdparty/binutils-gdb.git] / sim / h8300 / compile.c
index 8b13326a0a9c2fa45c3f6b45c281b682159026fd..565eadfe3b144cb1b1aa8770f0af6e65699c60b7 100644 (file)
@@ -4716,6 +4716,9 @@ sim_open (SIM_OPEN_KIND kind,
 
   sd = sim_state_alloc_extra (kind, callback, sizeof (struct h8300_sim_state));
 
+  /* 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)
     {