mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/arm/smmuv3: add support for stage 1 access fault
An access fault is raised when the Access Flag is not set in the looked-up PTE and the AFFD field is not set in the corresponding context descriptor. This was already implemented for stage 2. Implement it for stage 1 as well. Signed-off-by: Luc Michel <luc.michel@amd.com> Reviewed-by: Mostafa Saleh <smostafa@google.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Mostafa Saleh <smostafa@google.com> Message-id: 20240213082211.3330400-1-luc.michel@amd.com [PMM: tweaked comment text] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
bfe30b02e7
commit
15f6c16e6e
4 changed files with 14 additions and 0 deletions
|
@ -92,6 +92,7 @@ typedef struct SMMUTransCfg {
|
|||
bool disabled; /* smmu is disabled */
|
||||
bool bypassed; /* translation is bypassed */
|
||||
bool aborted; /* translation is aborted */
|
||||
bool affd; /* AF fault disable */
|
||||
uint32_t iotlb_hits; /* counts IOTLB hits */
|
||||
uint32_t iotlb_misses; /* counts IOTLB misses*/
|
||||
/* Used by stage-1 only. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue