summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/resources/tlb_unit.cc
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-02-23 16:35:18 -0500
committerKorey Sewell <ksewell@umich.edu>2011-02-23 16:35:18 -0500
commit0a74246fb9d618ca851122f4f63135fc490f22cd (patch)
treef5c0ff097923ac4b9eb79b9f4a17a853475f3f8d /src/cpu/inorder/resources/tlb_unit.cc
parent3e1ad73d089a455a559bed6779996877b7370b50 (diff)
downloadgem5-0a74246fb9d618ca851122f4f63135fc490f22cd.tar.xz
inorder: InstSeqNum bug
Because int and not InstSeqNum was used in a couple of places, you can overflow the int type and thus get wierd bugs when the sequence number is negative (or some wierd value)
Diffstat (limited to 'src/cpu/inorder/resources/tlb_unit.cc')
-rw-r--r--src/cpu/inorder/resources/tlb_unit.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/inorder/resources/tlb_unit.cc b/src/cpu/inorder/resources/tlb_unit.cc
index 37aec2209..9a0c9fe32 100644
--- a/src/cpu/inorder/resources/tlb_unit.cc
+++ b/src/cpu/inorder/resources/tlb_unit.cc
@@ -109,7 +109,7 @@ TLBUnit::execute(int slot_idx)
DynInstPtr inst = tlb_req->inst;
ThreadID tid = inst->readTid();
- int seq_num = inst->seqNum;
+ InstSeqNum seq_num = inst->seqNum;
int stage_num = tlb_req->getStageNum();
tlb_req->fault = NoFault;