add MicroPC functions back to thread context

--HG--
extra : convert_revision : a9cfd2829c4aec191f5f9ec6ce7b5d1dccc92af1
This commit is contained in:
Korey Sewell 2007-11-15 20:35:31 -05:00
parent cf9dc4b151
commit 7c076479e4

View file

@ -226,6 +226,14 @@ class ThreadContext
virtual void setNextNPC(uint64_t val) = 0; virtual void setNextNPC(uint64_t val) = 0;
virtual uint64_t readMicroPC() = 0;
virtual void setMicroPC(uint64_t val) = 0;
virtual uint64_t readNextMicroPC() = 0;
virtual void setNextMicroPC(uint64_t val) = 0;
virtual MiscReg readMiscRegNoEffect(int misc_reg) = 0; virtual MiscReg readMiscRegNoEffect(int misc_reg) = 0;
virtual MiscReg readMiscReg(int misc_reg) = 0; virtual MiscReg readMiscReg(int misc_reg) = 0;
@ -419,6 +427,14 @@ class ProxyThreadContext : public ThreadContext
void setNextNPC(uint64_t val) { actualTC->setNextNPC(val); } void setNextNPC(uint64_t val) { actualTC->setNextNPC(val); }
uint64_t readMicroPC() { return actualTC->readMicroPC(); }
void setMicroPC(uint64_t val) { actualTC->setMicroPC(val); }
uint64_t readNextMicroPC() { return actualTC->readMicroPC(); }
void setNextMicroPC(uint64_t val) { actualTC->setMicroPC(val); }
MiscReg readMiscRegNoEffect(int misc_reg) MiscReg readMiscRegNoEffect(int misc_reg)
{ return actualTC->readMiscRegNoEffect(misc_reg); } { return actualTC->readMiscRegNoEffect(misc_reg); }