]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/example-synacor/interp.c
sim: overhaul & unify endian settings management
[thirdparty/binutils-gdb.git] / sim / example-synacor / interp.c
index 784c9cbc5755746ec1ee2dfc09a18abf8b7c0a45..57b1bee7cd9d167b31b4e49406c50a93478e6b77 100644 (file)
@@ -84,6 +84,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback,
 
   /* Set default options before parsing user options.  */
   current_alignment = STRICT_ALIGNMENT;
+  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)