diff options
| author | Gustavo Romero <gustavo.romero@linaro.org> | 2024-09-10 18:38:56 +0100 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2024-09-10 23:33:48 +0100 |
| commit | f6110605313aaea66307f2470a85b7c053542442 (patch) | |
| tree | 80ac48912e84a02462e3ba079f2b3dd04156b5e3 /include/hw/qdev-properties-system.h | |
| parent | 8c68c11cf3a940c14f23a599a78f0baf3c536d7a (diff) | |
| download | focaccia-qemu-f6110605313aaea66307f2470a85b7c053542442.tar.gz focaccia-qemu-f6110605313aaea66307f2470a85b7c053542442.zip | |
gdbstub: Use specific MMU index when probing MTE addresses
Use cpu_mmu_index() to determine the specific translation regime (MMU index) before probing addresses using allocation_tag_mem_probe(). Currently, the MMU index is hardcoded to 0 and only works for user mode. By obtaining the specific MMU index according to the translation regime, future use of the stubs relying on allocation_tag_mem_probe in other regimes will be possible, like in EL1. This commit also changes the ptr_size value passed to allocation_tag_mem_probe() from 8 to 1. The ptr_size parameter actually represents the number of bytes in the memory access (which can be as small as 1 byte), rather than the number of bits used in the address space pointed to by ptr. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240906143316.657436-2-gustavo.romero@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240910173900.4154726-7-alex.bennee@linaro.org>
Diffstat (limited to 'include/hw/qdev-properties-system.h')
0 files changed, 0 insertions, 0 deletions