[for-next,02/74] target-mips: Use cpu_reset() in cpu_mips_init()

Message ID 1336318514-30906-3-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber May 6, 2012, 3:34 p.m.
Commit 0f71a7095db6bc055bc5bb520d85ea650cca8a33 (target-mips: QOM'ify
CPU) hooked up cpu_state_reset() to CPUClass::reset(). Dropping the
introduction of subclasses for 1.1, due to mips_def_t the reset code
could not be QOM'ified yet, i.e. cpu_state_reset() will not forward to

Update cpu_mips_init() with cpu_reset() nontheless, indirectly calling
cpu_state_reset(), so that generic code can be converted to call

Signed-off-by: Andreas Färber <afaerber@suse.de>
 target-mips/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/target-mips/translate.c b/target-mips/translate.c
index f5297b0..58e044b 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -12709,7 +12709,7 @@  CPUMIPSState *cpu_mips_init (const char *cpu_model)
     fpu_init(env, def);
     mvp_init(env, def);
-    cpu_state_reset(env);
+    cpu_reset(CPU(cpu));
     return env;