From: Giacomo Travaglini Date: Tue, 11 Aug 2020 20:10:01 +0000 (+0100) Subject: arch-arm: VSTTBR_EL2 doesn't contain a VMID field X-Git-Tag: v20.1.0.0~310 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3ec83ae3ec6d2908f260398150f64068c4ad802;p=gem5.git arch-arm: VSTTBR_EL2 doesn't contain a VMID field Change-Id: Ia6e14b509d7016020af9c85941e7b2d89dcdd359 Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32637 Reviewed-by: Richard Cooper Tested-by: kokoro --- diff --git a/src/arch/arm/tlb.cc b/src/arch/arm/tlb.cc index 4d54b54b7..dc4296d77 100644 --- a/src/arch/arm/tlb.cc +++ b/src/arch/arm/tlb.cc @@ -1422,9 +1422,7 @@ TLB::updateMiscReg(ThreadContext *tc, ArmTranslationType tranType) scr = tc->readMiscReg(MISCREG_SCR_EL3); isPriv = aarch64EL != EL0; if (haveVirtualization) { - uint64_t vttbr = isSecure? tc->readMiscReg(MISCREG_VSTTBR_EL2): - tc->readMiscReg(MISCREG_VTTBR_EL2); - vmid = bits(vttbr, 55, 48); + vmid = bits(tc->readMiscReg(MISCREG_VTTBR_EL2), 55, 48); isHyp = aarch64EL == EL2; isHyp |= tranType & HypMode; isHyp &= (tranType & S1S2NsTran) == 0;