diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-06-19 21:43:36 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-06-19 21:43:36 -0400 |
commit | 7dea79535c87b68b5fc6143190d09b8fc364f2aa (patch) | |
tree | 3f30f0716de709f86b9adaa746f0b3e312203cef /src/cpu/inorder/resources/fetch_seq_unit.hh | |
parent | 061b369d288ba4e3fdb145c025fb4d80378cb851 (diff) | |
download | gem5-7dea79535c87b68b5fc6143190d09b8fc364f2aa.tar.xz |
inorder: implement trap handling
Diffstat (limited to 'src/cpu/inorder/resources/fetch_seq_unit.hh')
-rw-r--r-- | src/cpu/inorder/resources/fetch_seq_unit.hh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/cpu/inorder/resources/fetch_seq_unit.hh b/src/cpu/inorder/resources/fetch_seq_unit.hh index 7c57fa17b..1cd0047e2 100644 --- a/src/cpu/inorder/resources/fetch_seq_unit.hh +++ b/src/cpu/inorder/resources/fetch_seq_unit.hh @@ -65,15 +65,12 @@ class FetchSeqUnit : public Resource { void updateAfterContextSwitch(DynInstPtr inst, ThreadID tid); - /** Override default Resource squash sequence. This actually, - * looks in the global communication buffer to get squash - * info - */ + /** Update to correct PC from a squash */ void squash(DynInstPtr inst, int squash_stage, - InstSeqNum squash_seq_num, ThreadID tid); + InstSeqNum squash_seq_num, ThreadID tid); - - inline void squashAfterInst(DynInstPtr inst, int stage_num, ThreadID tid); + /** Update to correct PC from a trap */ + void trap(Fault fault, ThreadID tid, DynInstPtr inst); protected: unsigned instSize; |