mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10: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é <[email protected]> Reviewed-by: Bibo Mao <[email protected]> Message-Id: <[email protected]>
This commit is contained in:
1 parent
492b2799c6
commit
91312a6d04
1 file changed
+3
-1
@@ -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