mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-06 00:00:42 -07:00
target/loongarch: Fill in TCGCPUOps.pointer_wrap
Check va32 state. Reviewed-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
7174cd2eec
commit
353f703cf1
1 changed files with 7 additions and 0 deletions
|
|
@ -334,6 +334,12 @@ static bool loongarch_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static vaddr loongarch_pointer_wrap(CPUState *cs, int mmu_idx,
|
||||
vaddr result, vaddr base)
|
||||
{
|
||||
return is_va32(cpu_env(cs)) ? (uint32_t)result : result;
|
||||
}
|
||||
#endif
|
||||
|
||||
static TCGTBCPUState loongarch_get_tb_cpu_state(CPUState *cs)
|
||||
|
|
@ -889,6 +895,7 @@ static const TCGCPUOps loongarch_tcg_ops = {
|
|||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
.tlb_fill = loongarch_cpu_tlb_fill,
|
||||
.pointer_wrap = loongarch_pointer_wrap,
|
||||
.cpu_exec_interrupt = loongarch_cpu_exec_interrupt,
|
||||
.cpu_exec_halt = loongarch_cpu_has_work,
|
||||
.cpu_exec_reset = cpu_reset,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue