diff options
author | Kunkun Jiang | 2020-11-24 03:37:11 +0100 |
---|---|---|
committer | Peter Maydell | 2020-12-10 12:30:44 +0100 |
commit | d9aad887e80c8002a866326d2ec7c3bf2463da87 (patch) | |
tree | 04d4881f7898dec9316723bf5fdd24fd09122498 /hw/arm/smmuv3-internal.h | |
parent | Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (diff) | |
download | qemu-d9aad887e80c8002a866326d2ec7c3bf2463da87.tar.gz qemu-d9aad887e80c8002a866326d2ec7c3bf2463da87.tar.xz qemu-d9aad887e80c8002a866326d2ec7c3bf2463da87.zip |
hw/arm/smmuv3: Fix up L1STD_SPAN decoding
Accroding to the SMMUv3 spec, the SPAN field of Level1 Stream Table
Descriptor is 5 bits([4:0]).
Fixes: 9bde7f0674f(hw/arm/smmuv3: Implement translate callback)
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
Message-id: 20201124023711.1184-1-jiangkunkun@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/smmuv3-internal.h')
-rw-r--r-- | hw/arm/smmuv3-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/smmuv3-internal.h b/hw/arm/smmuv3-internal.h index fa3c088972..b6f7e53b7c 100644 --- a/hw/arm/smmuv3-internal.h +++ b/hw/arm/smmuv3-internal.h @@ -633,6 +633,6 @@ static inline uint64_t l1std_l2ptr(STEDesc *desc) return hi << 32 | lo; } -#define L1STD_SPAN(stm) (extract32((stm)->word[0], 0, 4)) +#define L1STD_SPAN(stm) (extract32((stm)->word[0], 0, 5)) #endif |