summaryrefslogtreecommitdiff
path: root/src/cpu/o3/mips
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/o3/mips')
-rwxr-xr-xsrc/cpu/o3/mips/dyn_inst.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cpu/o3/mips/dyn_inst.hh b/src/cpu/o3/mips/dyn_inst.hh
index 7cd53413b..b1a29ccf9 100755
--- a/src/cpu/o3/mips/dyn_inst.hh
+++ b/src/cpu/o3/mips/dyn_inst.hh
@@ -99,7 +99,8 @@ class MipsDynInst : public BaseDynInst<Impl>
public:
/** Reads a miscellaneous register. */
- MiscReg readMiscRegNoEffect(int misc_reg)
+ /** TODO: Use thread number from argument if given, will probably not work for MIPS MT as is */
+ MiscReg readMiscRegNoEffect(int misc_reg, unsigned tid = 0)
{
return this->cpu->readMiscRegNoEffect(misc_reg, this->threadNumber);
}
@@ -113,7 +114,7 @@ class MipsDynInst : public BaseDynInst<Impl>
}
/** Sets a misc. register. */
- void setMiscRegNoEffect(int misc_reg, const MiscReg &val)
+ void setMiscRegNoEffect(int misc_reg, const MiscReg &val, unsigned tid = 0)
{
this->instResult.integer = val;
this->cpu->setMiscRegNoEffect(misc_reg, val, this->threadNumber);