summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorBrian Grayson <b.grayson@samsung.com>2012-03-11 10:20:54 -0400
committerBrian Grayson <b.grayson@samsung.com>2012-03-11 10:20:54 -0400
commit98185658c50ca2d8cab445b6cc4708d5e155d679 (patch)
tree77cb37c83ba65d1239b66d7d49cc67abe6afc48f /src/cpu
parentd2a0db7fe971f4153fee2fbf57c550ea59c246fd (diff)
downloadgem5-98185658c50ca2d8cab445b6cc4708d5e155d679.tar.xz
O3: Add fatal when fetchWidth > Impl::MaxWidth.
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/o3/fetch_impl.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh
index 60b11080d..df6ab26d5 100644
--- a/src/cpu/o3/fetch_impl.hh
+++ b/src/cpu/o3/fetch_impl.hh
@@ -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;