cpu: Update src/cpu/pred/bpred_unit.cc

Change-Id: I0cf177676d0f9fb9db4b127d5507ba66904739c4
Co-authored-by: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
rogerchang23424
2023-08-10 07:21:17 +08:00
committed by Roger Chang
parent 97e55fc173
commit 81e3bfcdc3

View File

@@ -503,12 +503,11 @@ BPredUnit::squash(const InstSeqNum &squashed_sn,
"return [sn:%llu] PC: %#x Restoring RAS\n", tid,
squashed_sn,
hist_it->seqNum, hist_it->pc);
if (hist_it->RASTarget != nullptr) {
DPRINTF(Branch,
"[tid:%i] [squash sn:%llu] Restoring top of RAS "
"to: %i, target: %s\n", tid, squashed_sn,
hist_it->RASIndex, *hist_it->RASTarget.get());
}
DPRINTF(Branch,
"[tid:%i] [squash sn:%llu] Restoring top of RAS "
"to: %i, target: %s\n", tid, squashed_sn,
hist_it->RASIndex,
hist_it->RASIndex ? *hist_it->RASTarget.get() : "no RAS");
RAS[tid].restore(hist_it->RASIndex, hist_it->RASTarget.get());
hist_it->usedRAS = false;
}