summaryrefslogtreecommitdiff
path: root/src/cpu/simple_thread.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-15 21:04:14 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-10-15 21:04:14 -0400
commit333a7c4ba27da0093d736b18c9355a214042fb01 (patch)
treee44d2fd2c6ec8fc3f07d06fc8576ac25c22c2189 /src/cpu/simple_thread.hh
parentdc7d9af582a192f5a50fcbc72073e7aab1a57097 (diff)
downloadgem5-333a7c4ba27da0093d736b18c9355a214042fb01.tar.xz
Started implementing microcode.
--HG-- extra : convert_revision : 51df0454085e13df023efd8a0c0a12f9756c4690
Diffstat (limited to 'src/cpu/simple_thread.hh')
-rw-r--r--src/cpu/simple_thread.hh20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh
index 6fa6500bd..fe22e6c43 100644
--- a/src/cpu/simple_thread.hh
+++ b/src/cpu/simple_thread.hh
@@ -377,6 +377,16 @@ class SimpleThread : public ThreadState
regs.setPC(val);
}
+ uint64_t readMicroPC()
+ {
+ return microPC;
+ }
+
+ void setMicroPC(uint64_t val)
+ {
+ microPC = val;
+ }
+
uint64_t readNextPC()
{
return regs.readNextPC();
@@ -387,6 +397,16 @@ class SimpleThread : public ThreadState
regs.setNextPC(val);
}
+ uint64_t readNextMicroPC()
+ {
+ return nextMicroPC;
+ }
+
+ void setNextMicroPC(uint64_t val)
+ {
+ nextMicroPC = val;
+ }
+
uint64_t readNextNPC()
{
return regs.readNextNPC();