summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-05 12:53:17 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-04 23:00:43 +0200
commitfca1be7cbcb8535fd9f6de707ac81878f34d5470 (patch)
treed6666f3a2676391b41efe242de631263b732df52 /target-mips
parent3bd4122ef61b3276edc79b700f0e18de2ff673f5 (diff)
target-mips: Use cpu_reset() in do_interrupt()
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index ddf9cb72f..4208bb20c 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -399,6 +399,7 @@ static void set_hflags_for_handler (CPUMIPSState *env)
void do_interrupt (CPUMIPSState *env)
{
#if !defined(CONFIG_USER_ONLY)
+ MIPSCPU *cpu = mips_env_get_cpu(env);
target_ulong offset;
int cause = -1;
const char *name;
@@ -452,7 +453,7 @@ void do_interrupt (CPUMIPSState *env)
set_hflags_for_handler(env);
break;
case EXCP_RESET:
- cpu_state_reset(env);
+ cpu_reset(CPU(cpu));
break;
case EXCP_SRESET:
env->CP0_Status |= (1 << CP0St_SR);