From ef32494e723283c5a0a8c27bcb657a0e9ca9e25c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 7 Aug 2007 21:51:12 -0700 Subject: [PATCH] Alpha: Fix an off by one error with the tlb caching mechanism. --HG-- extra : convert_revision : e17f7a0d58a2e59b2e270f0827db33d0a29365e0 --- src/arch/alpha/tlb.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2