Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/53663 )
Change subject: cpu: Use flattened register IDs in stored results in the
checker CPU.
......................................................................
cpu: Use flattened register IDs in stored results in the checker CPU.
This makes the IDs comparable to ones recorded by the O3 CPU which works
in renamed (and hence flattened) IDs.
Change-Id: If5b028798b1065d8dbaf3a10ec2e22bb8c260ddd
---
M src/cpu/checker/cpu.hh
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/cpu/checker/cpu.hh b/src/cpu/checker/cpu.hh
index 37745c6..09a4878 100644
--- a/src/cpu/checker/cpu.hh
+++ b/src/cpu/checker/cpu.hh
@@ -197,8 +197,9 @@
const RegId& id = si->destRegIdx(idx);
if (id.is(InvalidRegClass))
return;
- thread->setReg(id, val);
- result.emplace(id.regClass(), val);
+ const RegId flat = id.flatten(*thread->getIsaPtr());
+ thread->setRegFlat(flat, val);
+ result.emplace(flat.regClass(), val);
}
void
@@ -207,8 +208,9 @@
const RegId& id = si->destRegIdx(idx);
if (id.is(InvalidRegClass))
return;
- thread->setReg(id, val);
- result.emplace(id.regClass(), val);
+ const RegId flat = id.flatten(*thread->getIsaPtr());
+ thread->setRegFlat(flat, val);
+ result.emplace(flat.regClass(), val);
}
bool readPredicate() const override { return thread->readPredicate(); }
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/53663
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: If5b028798b1065d8dbaf3a10ec2e22bb8c260ddd
Gerrit-Change-Number: 53663
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s