]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/cris/sim-if.c
sim: overhaul & unify endian settings management
[thirdparty/binutils-gdb.git] / sim / cris / sim-if.c
index c6dcc23c938aac7d3dc23dc45521d133d14e59a3..c183856fa4c8ae929a24ecc3075cc656c2c70d7a 100644 (file)
@@ -654,6 +654,9 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
      standard ;-) that the rest of the elements won't be initialized.  */
   bfd_byte sp_init[4] = {0, 0, 0, 0};
 
+  /* 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)
     {