mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
target/openrisc: Use exit_tb instead of CPU_INTERRUPT_EXITTB
No need to use the interrupt mechanisms when we can simply exit the tb directly. Reviewed-by: Stafford Horne <shorne@gmail.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Stafford Horne <shorne@gmail.com>
This commit is contained in:
parent
c86395c850
commit
64e46c9581
2 changed files with 4 additions and 5 deletions
|
@ -26,7 +26,6 @@
|
|||
void HELPER(rfe)(CPUOpenRISCState *env)
|
||||
{
|
||||
OpenRISCCPU *cpu = openrisc_env_get_cpu(env);
|
||||
CPUState *cs = CPU(cpu);
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
int need_flush_tlb = (cpu->env.sr & (SR_SM | SR_IME | SR_DME)) ^
|
||||
(cpu->env.esr & (SR_SM | SR_IME | SR_DME));
|
||||
|
@ -53,8 +52,8 @@ void HELPER(rfe)(CPUOpenRISCState *env)
|
|||
}
|
||||
|
||||
if (need_flush_tlb) {
|
||||
CPUState *cs = CPU(cpu);
|
||||
tlb_flush(cs);
|
||||
}
|
||||
#endif
|
||||
cs->interrupt_request |= CPU_INTERRUPT_EXITTB;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue