diff options
Diffstat (limited to 'src/cpu/inorder/resource.cc')
-rw-r--r-- | src/cpu/inorder/resource.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/inorder/resource.cc b/src/cpu/inorder/resource.cc index bdcfbde7d..cad5cfb09 100644 --- a/src/cpu/inorder/resource.cc +++ b/src/cpu/inorder/resource.cc @@ -305,8 +305,10 @@ Resource::squash(DynInstPtr inst, int stage_num, InstSeqNum squash_seq_num, int req_slot_num = req_ptr->getSlot(); - if (resourceEvent[req_slot_num].scheduled()) - unscheduleEvent(req_slot_num); + if (latency > 0) { + if (resourceEvent[req_slot_num].scheduled()) + unscheduleEvent(req_slot_num); + } freeSlot(req_slot_num); } |