]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/v850/interp.c
sim: overhaul & unify endian settings management
[thirdparty/binutils-gdb.git] / sim / v850 / interp.c
index 79c6e0f7ddcc154e91c2419e8d099bbdc07e48a6..92c80a814c69b7d72e8eb8e0b4929b0ae41705e9 100644 (file)
@@ -197,6 +197,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;