target-mips: Use cpu_reset() in do_interrupt()

Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
Andreas Färber 2012-05-05 12:53:17 +02:00
parent 3bd4122ef6
commit fca1be7cbc

View File

@ -399,6 +399,7 @@ static void set_hflags_for_handler (CPUMIPSState *env)
void do_interrupt (CPUMIPSState *env) void do_interrupt (CPUMIPSState *env)
{ {
#if !defined(CONFIG_USER_ONLY) #if !defined(CONFIG_USER_ONLY)
MIPSCPU *cpu = mips_env_get_cpu(env);
target_ulong offset; target_ulong offset;
int cause = -1; int cause = -1;
const char *name; const char *name;
@ -452,7 +453,7 @@ void do_interrupt (CPUMIPSState *env)
set_hflags_for_handler(env); set_hflags_for_handler(env);
break; break;
case EXCP_RESET: case EXCP_RESET:
cpu_state_reset(env); cpu_reset(CPU(cpu));
break; break;
case EXCP_SRESET: case EXCP_SRESET:
env->CP0_Status |= (1 << CP0St_SR); env->CP0_Status |= (1 << CP0St_SR);