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>
This commit is contained in:
parent
5e7b204dbf
commit
d9aad887e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user