From: Gabe Black Date: Wed, 8 Aug 2007 04:51:12 +0000 (-0700) Subject: Alpha: Fix an off by one error with the tlb caching mechanism. X-Git-Tag: m5_2.0_beta4~157^2~14 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef32494e723283c5a0a8c27bcb657a0e9ca9e25c;p=gem5.git Alpha: Fix an off by one error with the tlb caching mechanism. --HG-- extra : convert_revision : e17f7a0d58a2e59b2e270f0827db33d0a29365e0 --- diff --git a/src/arch/alpha/tlb.hh b/src/arch/alpha/tlb.hh index 20f0037fd..5be7eab59 100644 --- a/src/arch/alpha/tlb.hh +++ b/src/arch/alpha/tlb.hh @@ -90,8 +90,8 @@ namespace AlphaISA virtual void unserialize(Checkpoint *cp, const std::string §ion); // Most recently used page table entries - PTE *PTECache[2]; - inline void flushCache() { memset(PTECache, 0, 2 * sizeof(PTE*)); } + PTE *PTECache[3]; + inline void flushCache() { memset(PTECache, 0, 3 * sizeof(PTE*)); } }; class ITB : public TLB