From 1fac3a292ad53811fec534d8a3e49cb86a70aeb8 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Mon, 20 Jun 2016 15:51:31 +0100 Subject: [PATCH] arm: Mark uninitialized new TLB entries as not valid Previously when we initialized the TLB we would allocate a number of TLB entries which would be marked as valid. As a result the TLB contained an entry which would be considered a valid entry for the 0 page. Change-Id: I23ace86426a171a4f6200ebeb29ad57c21647036 Reviewed-by: Curtis Dunham Reviewed-by: Andreas Sandberg --- src/arch/arm/pagetable.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/arm/pagetable.hh b/src/arch/arm/pagetable.hh index 6d306d6e0..856e0d545 100644 --- a/src/arch/arm/pagetable.hh +++ b/src/arch/arm/pagetable.hh @@ -168,7 +168,7 @@ struct TlbEntry : public Serializable pfn(0), size(0), vpn(0), attributes(0), lookupLevel(L1), asid(0), vmid(0), N(0), innerAttrs(0), outerAttrs(0), ap(0), hap(0x3), domain(DomainType::Client), mtype(MemoryType::StronglyOrdered), - longDescFormat(false), isHyp(false), global(false), valid(true), + longDescFormat(false), isHyp(false), global(false), valid(false), ns(true), nstid(true), el(0), nonCacheable(false), shareable(false), outerShareable(false), xn(0), pxn(0) {