From 47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 26 May 2009 09:23:13 -0700 Subject: types: add a type for thread IDs and try to use it everywhere --- src/cpu/ozone/null_predictor.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cpu/ozone/null_predictor.hh') diff --git a/src/cpu/ozone/null_predictor.hh b/src/cpu/ozone/null_predictor.hh index 68bb7cd52..44d2f5475 100644 --- a/src/cpu/ozone/null_predictor.hh +++ b/src/cpu/ozone/null_predictor.hh @@ -68,7 +68,7 @@ class NullPredictor * @param tid The thread id. * @return Returns if the branch is taken or not. */ - bool predict(DynInstPtr &inst, Addr &PC, unsigned tid) + bool predict(DynInstPtr &inst, Addr &PC, ThreadID tid) { return false; } /** @@ -77,7 +77,7 @@ class NullPredictor * @param done_sn The sequence number to commit any older updates up until. * @param tid The thread id. */ - void update(const InstSeqNum &done_sn, unsigned tid) { } + void update(const InstSeqNum &done_sn, ThreadID tid) { } /** * Squashes all outstanding updates until a given sequence number. @@ -85,7 +85,7 @@ class NullPredictor * until. * @param tid The thread id. */ - void squash(const InstSeqNum &squashed_sn, unsigned tid) { } + void squash(const InstSeqNum &squashed_sn, ThreadID tid) { } /** * Squashes all outstanding updates until a given sequence number, and @@ -97,7 +97,7 @@ class NullPredictor * @param tid The thread id. */ void squash(const InstSeqNum &squashed_sn, const Addr &corr_target, - bool actually_taken, unsigned tid) + bool actually_taken, ThreadID tid) { } }; -- cgit v1.2.3