Gabe Black has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/23183 )
Change subject: sim: Add a function for decoding the field(s) of an m5op
address.
..
sim: Add a function for decoding the field(s) of an m5op address.
These have at one time included both a func and subfunc, although the
subfunc was unused and is now excluded.
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187
Change-Id: Ic35ced7a012aa72af5454768f3cbd11b431b061a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23183
Maintainer: Gabe Black
Tested-by: kokoro
Reviewed-by: Marjan Fariborz
Reviewed-by: Jason Lowe-Power
---
M src/sim/pseudo_inst.hh
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved
Marjan Fariborz: Looks good to me, approved
Gabe Black: Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/sim/pseudo_inst.hh b/src/sim/pseudo_inst.hh
index caada36..44227af 100644
--- a/src/sim/pseudo_inst.hh
+++ b/src/sim/pseudo_inst.hh
@@ -86,6 +86,12 @@
namespace PseudoInst
{
+static inline void
+decodeAddrOffset(Addr offset, uint8_t )
+{
+func = bits(offset, 15, 8);
+}
+
void arm(ThreadContext *tc);
void quiesce(ThreadContext *tc);
void quiesceSkip(ThreadContext *tc);
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/23183
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ic35ced7a012aa72af5454768f3cbd11b431b061a
Gerrit-Change-Number: 23183
Gerrit-PatchSet: 11
Gerrit-Owner: Gabe Black
Gerrit-Reviewer: Gabe Black
Gerrit-Reviewer: Giacomo Travaglini
Gerrit-Reviewer: Jason Lowe-Power
Gerrit-Reviewer: Marjan Fariborz
Gerrit-Reviewer: kokoro
Gerrit-MessageType: merged
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev