cpu-o3: Check predication before the SQ size for a debug print
The size of the store entry in the LSQ is used to indicate a fault in the execution of the store. At the same time, a store that is predicated false will also have 0 size in the corresponding store queue entry. This changeset ensures that we check if the store was predicated false before checking the size field. This way we avoid printing stores as faulting when they are only predicated false. Change-Id: Ie07982197bd73d7b44d26a3257d54ecb103a952a Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/4821 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
@@ -679,18 +679,18 @@ LSQUnit<Impl>::executeStore(DynInstPtr &store_inst)
|
||||
store_fault == NoFault)
|
||||
return store_fault;
|
||||
|
||||
if (!store_inst->readPredicate())
|
||||
if (!store_inst->readPredicate()) {
|
||||
DPRINTF(LSQUnit, "Store [sn:%lli] not executed from predication\n",
|
||||
store_inst->seqNum);
|
||||
store_inst->forwardOldRegs();
|
||||
return store_fault;
|
||||
}
|
||||
|
||||
if (storeQueue[store_idx].size == 0) {
|
||||
DPRINTF(LSQUnit,"Fault on Store PC %s, [sn:%lli], Size = 0\n",
|
||||
store_inst->pcState(), store_inst->seqNum);
|
||||
|
||||
return store_fault;
|
||||
} else if (!store_inst->readPredicate()) {
|
||||
DPRINTF(LSQUnit, "Store [sn:%lli] not executed from predication\n",
|
||||
store_inst->seqNum);
|
||||
return store_fault;
|
||||
}
|
||||
|
||||
assert(store_fault == NoFault);
|
||||
|
||||
Reference in New Issue
Block a user