mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 17:35:33 +00:00
target-arm: Suppress TBI for S2 translations
Stage-2 MMU translations do not have configurable TBI as the top byte is always 0 (48-bit IPAs). Backports commit 1edee4708a0e3163cbf20fac325be456abd960bb from qemu
This commit is contained in:
parent
097325acd6
commit
f5b3b9f6e9
|
@ -5743,7 +5743,9 @@ static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address,
|
|||
if (arm_el_is_aa64(env, el)) {
|
||||
va_size = 64;
|
||||
if (el > 1) {
|
||||
tbi = extract64(tcr->raw_tcr, 20, 1);
|
||||
if (mmu_idx != ARMMMUIdx_S2NS) {
|
||||
tbi = extract64(tcr->raw_tcr, 20, 1);
|
||||
}
|
||||
} else {
|
||||
if (extract64(address, 55, 1)) {
|
||||
tbi = extract64(tcr->raw_tcr, 38, 1);
|
||||
|
|
Loading…
Reference in a new issue