mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 18:57:14 +00:00
MIPS halt support - MIPS static state fix (Daniel Jacobowitz)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1689 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a64d4718f1
commit
6810e15490
11
cpu-exec.c
11
cpu-exec.c
@ -191,7 +191,7 @@ static inline TranslationBlock *tb_find_fast(void)
|
|||||||
cs_base = 0;
|
cs_base = 0;
|
||||||
pc = env->nip;
|
pc = env->nip;
|
||||||
#elif defined(TARGET_MIPS)
|
#elif defined(TARGET_MIPS)
|
||||||
flags = env->hflags & MIPS_HFLAGS_TMASK;
|
flags = env->hflags & (MIPS_HFLAGS_TMASK | MIPS_HFLAG_BMASK);
|
||||||
cs_base = 0;
|
cs_base = 0;
|
||||||
pc = env->PC;
|
pc = env->PC;
|
||||||
#else
|
#else
|
||||||
@ -285,6 +285,15 @@ int cpu_exec(CPUState *env1)
|
|||||||
return EXCP_HALTED;
|
return EXCP_HALTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#elif defined(TARGET_MIPS)
|
||||||
|
if (env1->halted) {
|
||||||
|
if (env1->interrupt_request &
|
||||||
|
(CPU_INTERRUPT_HARD | CPU_INTERRUPT_TIMER)) {
|
||||||
|
env1->halted = 0;
|
||||||
|
} else {
|
||||||
|
return EXCP_HALTED;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cpu_single_env = env1;
|
cpu_single_env = env1;
|
||||||
|
Loading…
Reference in New Issue
Block a user