diff options
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r-- | sim/sh/interp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 87fb863..264e9b1 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -2358,6 +2358,9 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb, 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) { |