diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-02-23 16:35:18 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-02-23 16:35:18 -0500 |
commit | 0a74246fb9d618ca851122f4f63135fc490f22cd (patch) | |
tree | f5c0ff097923ac4b9eb79b9f4a17a853475f3f8d /src/cpu/inorder/resources/fetch_seq_unit.cc | |
parent | 3e1ad73d089a455a559bed6779996877b7370b50 (diff) | |
download | gem5-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/fetch_seq_unit.cc')
-rw-r--r-- | src/cpu/inorder/resources/fetch_seq_unit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/inorder/resources/fetch_seq_unit.cc b/src/cpu/inorder/resources/fetch_seq_unit.cc index d23ea0a82..8d9187c7a 100644 --- a/src/cpu/inorder/resources/fetch_seq_unit.cc +++ b/src/cpu/inorder/resources/fetch_seq_unit.cc @@ -76,7 +76,7 @@ FetchSeqUnit::execute(int slot_num) DynInstPtr inst = fs_req->inst; ThreadID tid = inst->readTid(); int stage_num = fs_req->getStageNum(); - int seq_num = inst->seqNum; + InstSeqNum seq_num = inst->seqNum; DPRINTF(InOrderFetchSeq, "[tid:%i]: Current PC is %s\n", tid, pc[tid]); |