summaryrefslogtreecommitdiff
path: root/cpu/o3/inst_queue_impl.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-02-10 14:38:15 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-02-10 14:38:15 -0500
commita86a3fa525caa3f063e94a042545131c7e61d5b6 (patch)
treeb5ade6e99258d47d57209bf84914b9c2acc2f5c4 /cpu/o3/inst_queue_impl.hh
parentfb90b1dd13fb6c0090bfe2731ca9ccee56479761 (diff)
parentfb7899aa681001d2af7837eae7bf0e19fd3e1b02 (diff)
downloadgem5-a86a3fa525caa3f063e94a042545131c7e61d5b6.tar.xz
Merge zizzer:/bk/m5
into udhcp-macvpn-776.public.engin.umich.edu:/Users/ali/work/m5.head --HG-- extra : convert_revision : e9ffaa1d4b7eee1f5bd0c492e162aac1e0806099
Diffstat (limited to 'cpu/o3/inst_queue_impl.hh')
-rw-r--r--cpu/o3/inst_queue_impl.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/o3/inst_queue_impl.hh b/cpu/o3/inst_queue_impl.hh
index 2221ba456..048dc7c00 100644
--- a/cpu/o3/inst_queue_impl.hh
+++ b/cpu/o3/inst_queue_impl.hh
@@ -34,6 +34,7 @@
// but probably is more flexible to actually add in a delay parameter than
// just running it backwards.
+#include <limits>
#include <vector>
#include "sim/root.hh"
@@ -42,7 +43,7 @@
// Either compile error or max int due to sign extension.
// Hack to avoid compile warnings.
-const InstSeqNum MaxInstSeqNum = 0 - 1;
+const InstSeqNum MaxInstSeqNum = std::numeric_limits<InstSeqNum>::max();
template <class Impl>
InstructionQueue<Impl>::InstructionQueue(Params &params)