mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
target/arm: Remove workaround for small SAU regions
Before we supported direct execution from MMIO regions, we implemented workarounds in commit 720424359917887c926a33d2 which let us avoid doing so, even if the SAU or MPU region was less than page-sized. Once we implemented execute-from-MMIO, we removed part of those workarounds in commit d4b6275df320cee76; but we forgot the one in get_phys_addr_pmsav8() which suppressed use of small SAU regions in executable regions. Remove that workaround now. Backports commit 521ed6b4015ba39a2e39c65a94643f3e6412edc4 from qemu
This commit is contained in:
parent
680c79956d
commit
3edbb8180a
|
@ -9737,18 +9737,6 @@ static bool get_phys_addr_pmsav8(CPUARMState *env, uint32_t address,
|
|||
|
||||
ret = pmsav8_mpu_lookup(env, address, access_type, mmu_idx, phys_ptr,
|
||||
txattrs, prot, &mpu_is_subpage, fi, NULL);
|
||||
/*
|
||||
* TODO: this is a temporary hack to ignore the fact that the SAU region
|
||||
* is smaller than a page if this is an executable region. We never
|
||||
* supported small MPU regions, but we did (accidentally) allow small
|
||||
* SAU regions, and if we now made small SAU regions not be executable
|
||||
* then this would break previously working guest code. We can't
|
||||
* remove this until/unless we implement support for execution from
|
||||
* small regions.
|
||||
*/
|
||||
if (*prot & PAGE_EXEC) {
|
||||
sattrs.subpage = false;
|
||||
}
|
||||
*page_size = sattrs.subpage || mpu_is_subpage ? 1 : TARGET_PAGE_SIZE;
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue