diff options
author | Andreas Färber <afaerber@suse.de> | 2012-04-11 01:33:33 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-04-12 01:07:59 +0200 |
commit | 8d7d505adda444220c93ee5ad09df4176b366bd7 (patch) | |
tree | ed2dc154e74062fcc693af482f96a109fc490781 /target-lm32/helper.c | |
parent | fc0ced2fbd8d40672fcdd2f655bbdcd3e278f3ab (diff) |
target-lm32: QOM'ify CPU init
Move code from cpu_lm32_init() to an initfn; call cpu_reset()
instead of cpu_state_reset().
Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'target-lm32/helper.c')
-rw-r--r-- | target-lm32/helper.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/target-lm32/helper.c b/target-lm32/helper.c index 3cf86d7b76..9de777f43e 100644 --- a/target-lm32/helper.c +++ b/target-lm32/helper.c @@ -211,10 +211,7 @@ CPULM32State *cpu_lm32_init(const char *cpu_model) env->num_bps = def->num_breakpoints; env->num_wps = def->num_watchpoints; env->cfg = cfg_by_def(def); - env->flags = 0; - cpu_exec_init(env); - cpu_state_reset(env); qemu_init_vcpu(env); if (tcg_enabled() && !tcg_initialized) { |