From d09ab2bd225527b8204168b5763796946bde76b8 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Thu, 15 Nov 2007 20:35:49 -0500 Subject: [PATCH] add thread id to misc. reg functions --HG-- extra : convert_revision : 35d073d1279947d943a0290832e09a5268dd0b76 --- src/cpu/o3/mips/dyn_inst.hh | 5 +++-- 1 file 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 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); -- 2.30.2