]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/arm/wrapper.c
sim: overhaul alignment settings management
[thirdparty/binutils-gdb.git] / sim / arm / wrapper.c
index a1147e402cc0b18a19e7aad1ef72713941a5c88c..e697d55a6b5e283761247873a9a8ee882cda4ac1 100644 (file)
@@ -801,6 +801,9 @@ sim_open (SIM_OPEN_KIND kind,
   SIM_DESC sd = sim_state_alloc (kind, cb);
   SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
 
+  /* 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)
     {