]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/iq2000/sim-if.c
sim: overhaul alignment settings management
[thirdparty/binutils-gdb.git] / sim / iq2000 / sim-if.c
index 679d5164033a99632f9acc6a63f0b003992fb2e1..82ac53f2d0bdb40a94beaedfc55a8b0472900453 100644 (file)
@@ -60,6 +60,9 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
   int i;
   SIM_DESC sd = sim_state_alloc (kind, callback);
 
+  /* Set default options before parsing user options.  */
+  current_alignment = STRICT_ALIGNMENT;
+
   /* The cpu data is kept in a separately allocated chunk of memory.  */
   if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK)
     {