Alpha: Fix an off by one error with the tlb caching mechanism.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 8 Aug 2007 04:51:12 +0000 (21:51 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 8 Aug 2007 04:51:12 +0000 (21:51 -0700)
--HG--
extra : convert_revision : e17f7a0d58a2e59b2e270f0827db33d0a29365e0

src/arch/alpha/tlb.hh

index 20f0037fdbe010e5abc8dfe10732f5bb4692b1f9..5be7eab59b6fbb9f872b9f4010988d96f48e5ccc 100644 (file)
@@ -90,8 +90,8 @@ namespace AlphaISA
         virtual void unserialize(Checkpoint *cp, const std::string &section);
 
         // 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