CPU: Explain why some code is commented out.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 13 Oct 2008 06:52:02 +0000 (23:52 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 13 Oct 2008 06:52:02 +0000 (23:52 -0700)
src/cpu/simple/atomic.cc

index 878f69f0c16cd62fbf0264f3396da7739d8f13a1..30f4a5c5ed3a72bd9526f96a4902ea82e6b317c7 100644 (file)
@@ -730,6 +730,10 @@ AtomicSimpleCPU::tick()
             dcache_access = false; // assume no dcache access
 
             if (!fromRom) {
+                // This is commented out because the predecoder would act like
+                // a tiny cache otherwise. It wouldn't be flushed when needed
+                // like the I cache. It should be flushed, and when that works
+                // this code should be uncommented.
                 //Fetch more instruction memory if necessary
                 //if(predecoder.needMoreBytes())
                 //{