From: Korey Sewell Date: Fri, 16 Nov 2007 01:35:49 +0000 (-0500) Subject: add thread id to misc. reg functions X-Git-Tag: m5_2.0_beta5~80 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d09ab2bd225527b8204168b5763796946bde76b8;p=gem5.git add thread id to misc. reg functions --HG-- extra : convert_revision : 35d073d1279947d943a0290832e09a5268dd0b76 --- 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 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 } /** 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);