From: Brian Grayson Date: Sun, 11 Mar 2012 14:20:54 +0000 (-0400) Subject: O3: Add fatal when fetchWidth > Impl::MaxWidth. X-Git-Tag: stable_2012_06_28~178 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98185658c50ca2d8cab445b6cc4708d5e155d679;p=gem5.git O3: Add fatal when fetchWidth > Impl::MaxWidth. --- 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::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(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(Impl::MaxWidth)); // Set fetch stage's status to inactive. _status = Inactive;