mirror of
https://github.com/qemu/qemu.git
synced 2026-07-09 01:56:21 +00:00
target/loongarch: Inline cpu_ldl_code() call in cpu_do_interrupt()
In preparation of removing the cpu_ldl_code wrapper, inline it. Since LoongArch instructions are always stored in little-endian order, replace MO_TE -> MO_LE. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Message-Id: <20251224161456.89707-6-philmd@linaro.org>
This commit is contained in:
@@ -140,7 +140,9 @@ static void loongarch_cpu_do_interrupt(CPUState *cs)
|
||||
}
|
||||
|
||||
if (update_badinstr) {
|
||||
env->CSR_BADI = cpu_ldl_code(env, env->pc);
|
||||
MemOpIdx oi = make_memop_idx(MO_LEUL, cpu_mmu_index(cs, true));
|
||||
|
||||
env->CSR_BADI = cpu_ldl_code_mmu(env, env->pc, oi, 0);
|
||||
}
|
||||
|
||||
/* Save PLV and IE */
|
||||
|
||||
Reference in New Issue
Block a user