dev-arm: SMMUv3 Table walks using TnSZ
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 22 Jul 2019 15:08:26 +0000 (16:08 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 25 Jul 2019 12:49:12 +0000 (12:49 +0000)
commite71e2d6a35233250ad05b358c27cad5a05609d55
tree4c3eea92bda2b3f352cb37e16637225c9c3dd09e
parent36da743e0b934c853cab41e5254e1ba2e93f157d
dev-arm: SMMUv3 Table walks using TnSZ

TnSZ is needed when selecting the starting level of a table
walk, since it directly affects the number of IA bits.
This has been implemented by adding T0SZ and S2T0SZ to the
translation context.
T1SZ is not used at the moment since the current model doesn't
support TTB1.

Change-Id: I75663475c4dc01e5986cd93f8deafcdf7b1ece82
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Michiel Van Tol <michiel.vantol@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19630
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/smmu_v3_ptops.cc
src/dev/arm/smmu_v3_ptops.hh
src/dev/arm/smmu_v3_transl.cc
src/dev/arm/smmu_v3_transl.hh