O3: Add fatal when fetchWidth > Impl::MaxWidth.
authorBrian Grayson <b.grayson@samsung.com>
Sun, 11 Mar 2012 14:20:54 +0000 (10:20 -0400)
committerBrian Grayson <b.grayson@samsung.com>
Sun, 11 Mar 2012 14:20:54 +0000 (10:20 -0400)
src/cpu/o3/fetch_impl.hh

index 60b11080d1d33a05a308dc4d530f785d08e70d72..df6ab26d5c4c09c11f3d62e84c82b769da339db5 100644 (file)
@@ -95,6 +95,10 @@ DefaultFetch<Impl>::DefaultFetch(O3CPU *_cpu, DerivO3CPUParams *params)
         fatal("numThreads (%d) is larger than compiled limit (%d),\n"
               "\tincrease MaxThreads in src/cpu/o3/impl.hh\n",
               numThreads, static_cast<int>(Impl::MaxThreads));
+    if (fetchWidth > Impl::MaxWidth)
+        fatal("fetchWidth (%d) is larger than compiled limit (%d),\n"
+             "\tincrease MaxWidth in src/cpu/o3/impl.hh\n",
+             fetchWidth, static_cast<int>(Impl::MaxWidth));
 
     // Set fetch stage's status to inactive.
     _status = Inactive;