mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 14:05:30 +00:00
target/arm: Report unsupported MPU region sizes more clearly
Currently our PMSAv7 and ARMv7M MPU implementation cannot handle MPU region sizes smaller than our TARGET_PAGE_SIZE. However we report that in a slightly confusing way: DRSR[3]: No support for MPU (sub)region alignment of 9 bits. Minimum is 10 The problem is not the alignment of the region, but its size; tweak the error message to say so: DRSR[3]: No support for MPU (sub)region size of 512 bytes. Minimum is 1024. Backports commit 8aec759b45fa6986c0b159cb27353d6abb0d5d73 from qemu
This commit is contained in:
parent
18e6b1549f
commit
8f26d8e556
|
@ -8874,9 +8874,9 @@ static bool get_phys_addr_pmsav7(CPUARMState *env, uint32_t address,
|
|||
}
|
||||
if (rsize < TARGET_PAGE_BITS) {
|
||||
qemu_log_mask(LOG_UNIMP,
|
||||
"DRSR[%d]: No support for MPU (sub)region "
|
||||
"alignment of %" PRIu32 " bits. Minimum is %d\n",
|
||||
n, rsize, TARGET_PAGE_BITS);
|
||||
"DRSR[%d]: No support for MPU (sub)region size of"
|
||||
" %" PRIu32 " bytes. Minimum is %d.\n",
|
||||
n, (1 << rsize), TARGET_PAGE_SIZE);
|
||||
continue;
|
||||
}
|
||||
if (srdis) {
|
||||
|
|
Loading…
Reference in a new issue