summaryrefslogtreecommitdiff
path: root/src/cpu/o3
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2009-02-10 15:49:29 -0800
committerKorey Sewell <ksewell@umich.edu>2009-02-10 15:49:29 -0800
commit2d0a66cbc123fc345deb070c323130382518f367 (patch)
tree6f52928b6ffce6fb56c26f543961b12cd9f5d0f4 /src/cpu/o3
parent20c5ec6e1cb52d9e0f39d50bb254bffda139c4ea (diff)
downloadgem5-2d0a66cbc123fc345deb070c323130382518f367.tar.xz
CPU: Prepare CPU models for the new in-order CPU model.
Some new functions and forward declarations are necessary to make things work
Diffstat (limited to 'src/cpu/o3')
-rw-r--r--src/cpu/o3/ras.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/o3/ras.hh b/src/cpu/o3/ras.hh
index 97846ed16..f0621c5b5 100644
--- a/src/cpu/o3/ras.hh
+++ b/src/cpu/o3/ras.hh
@@ -71,6 +71,9 @@ class ReturnAddrStack
*/
void restore(unsigned top_entry_idx, const Addr &restored_target);
+ bool empty() { return usedEntries == 0; }
+
+ bool full() { return usedEntries == numEntries; }
private:
/** Increments the top of stack index. */
inline void incrTos()