O3: Fix size of skid buffer between fetch and decode when widths are different
authorBrian Grayson <b.grayson@samsung.com>
Wed, 21 Mar 2012 15:34:05 +0000 (10:34 -0500)
committerBrian Grayson <b.grayson@samsung.com>
Wed, 21 Mar 2012 15:34:05 +0000 (10:34 -0500)
src/cpu/o3/decode_impl.hh

index 22b89f4a89a4dd844cc1a60de3035ddf0e65d628..fd8dc834bd557d22411b37e5dd8e032d42bfc0f4 100644 (file)
@@ -64,7 +64,7 @@ DefaultDecode<Impl>::DefaultDecode(O3CPU *_cpu, DerivO3CPUParams *params)
     }
 
     // @todo: Make into a parameter
-    skidBufferMax = (fetchToDecodeDelay * params->fetchWidth) + decodeWidth;
+    skidBufferMax = (fetchToDecodeDelay + 1) *  params->fetchWidth;
 }
 
 template <class Impl>