misc: Use a PCStateBase unique_ptr in SkipFuncBase::process.
Change-Id: I0ffcf3abeaa7704a3b6eaccfd967a9654f59c741 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/52046 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
This commit is contained in:
@@ -39,12 +39,12 @@ namespace gem5
|
||||
void
|
||||
SkipFuncBase::process(ThreadContext *tc)
|
||||
{
|
||||
[[maybe_unused]] TheISA::PCState oldPC = tc->pcState();
|
||||
std::unique_ptr<PCStateBase> old_pc(tc->pcState().clone());
|
||||
|
||||
returnFromFuncIn(tc);
|
||||
|
||||
DPRINTF(PCEvent, "skipping %s: pc = %s, newpc = %s\n", description,
|
||||
oldPC, tc->pcState());
|
||||
*old_pc, tc->pcState());
|
||||
}
|
||||
|
||||
} // namespace gem5
|
||||
|
||||
Reference in New Issue
Block a user