projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2a0db7
)
O3: Add fatal when fetchWidth > Impl::MaxWidth.
author
Brian Grayson
<b.grayson@samsung.com>
Sun, 11 Mar 2012 14:20:54 +0000
(10:20 -0400)
committer
Brian Grayson
<b.grayson@samsung.com>
Sun, 11 Mar 2012 14:20:54 +0000
(10:20 -0400)
src/cpu/o3/fetch_impl.hh
patch
|
blob
|
history
diff --git
a/src/cpu/o3/fetch_impl.hh
b/src/cpu/o3/fetch_impl.hh
index 60b11080d1d33a05a308dc4d530f785d08e70d72..df6ab26d5c4c09c11f3d62e84c82b769da339db5 100644
(file)
--- 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;