]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/mn10300/interp.c
sim: overhaul & unify endian settings management
[thirdparty/binutils-gdb.git] / sim / mn10300 / interp.c
index 541d4b14668cc81cd76d11cd54263e23e2064a3a..b793d3c019feecec143e52a83a563ec5dc3b23d4 100644 (file)
@@ -94,6 +94,9 @@ sim_open (SIM_OPEN_KIND kind,
 
   SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
 
+  /* Set default options before parsing user options.  */
+  current_target_byte_order = BFD_ENDIAN_LITTLE;
+
   /* The cpu data is kept in a separately allocated chunk of memory.  */
   if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK)
     return 0;