diff options
author | Korey Sewell <ksewell@umich.edu> | 2010-01-31 18:27:49 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2010-01-31 18:27:49 -0500 |
commit | aacc5cb205c17a91545a5d8209f5c4bda85543a9 (patch) | |
tree | 4d13dcfbb71ceba02f2559e8a4b366228599df95 /src/cpu/inorder/resource.hh | |
parent | 90d3b45a566847fe15095b92238e32973ad9cc0e (diff) | |
download | gem5-aacc5cb205c17a91545a5d8209f5c4bda85543a9.tar.xz |
inorder: add updatePC event to resPool
this will be used for when a thread comes back from a cache miss, it needs to update the PCs
because the inst might of been a branch or delayslot in which the next PC isnt always
a straight addition
Diffstat (limited to 'src/cpu/inorder/resource.hh')
-rw-r--r-- | src/cpu/inorder/resource.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/inorder/resource.hh b/src/cpu/inorder/resource.hh index 4ae4db818..383340df2 100644 --- a/src/cpu/inorder/resource.hh +++ b/src/cpu/inorder/resource.hh @@ -96,6 +96,10 @@ class Resource { /** Resources that care about thread activation override this. */ virtual void suspendThread(ThreadID tid) { } + /** Will be called the cycle before a context switch. Any bookkeeping + * that needs to be kept for that, can be done here + */ + virtual void updateAfterContextSwitch(DynInstPtr inst, ThreadID tid) { } /** Resources that care when an instruction has been graduated * can override this |