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/simple_thread.hh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/cpu/simple_thread.hh') diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh index 35f74a67e..08dd45640 100644 --- a/src/cpu/simple_thread.hh +++ b/src/cpu/simple_thread.hh @@ -337,22 +337,26 @@ class SimpleThread : public ThreadState regs.setNextNPC(val); } - MiscReg readMiscRegNoEffect(int misc_reg, unsigned tid = 0) + MiscReg + readMiscRegNoEffect(int misc_reg, ThreadID tid = 0) { return regs.readMiscRegNoEffect(misc_reg); } - MiscReg readMiscReg(int misc_reg, unsigned tid = 0) + MiscReg + readMiscReg(int misc_reg, ThreadID tid = 0) { return regs.readMiscReg(misc_reg, tc); } - void setMiscRegNoEffect(int misc_reg, const MiscReg &val, unsigned tid = 0) + void + setMiscRegNoEffect(int misc_reg, const MiscReg &val, ThreadID tid = 0) { return regs.setMiscRegNoEffect(misc_reg, val); } - void setMiscReg(int misc_reg, const MiscReg &val, unsigned tid = 0) + void + setMiscReg(int misc_reg, const MiscReg &val, ThreadID tid = 0) { return regs.setMiscReg(misc_reg, val, tc); } -- cgit v1.2.3