Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/36877 )

Change subject: cpu: Add an StaticInst accessor for setting register index storage.
......................................................................

cpu: Add an StaticInst accessor for setting register index storage.

Change-Id: I66adccd8851f035b5d61ace9153ae7acc57403ed
---
M src/cpu/static_inst.hh
1 file changed, 7 insertions(+), 1 deletion(-)



diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh
index cf4ba3f..17d7384 100644
--- a/src/cpu/static_inst.hh
+++ b/src/cpu/static_inst.hh
@@ -94,7 +94,6 @@
     };

   private:
-
     /// See srcRegIdx().
     RegId _srcRegIdx[MaxInstSrcRegs];
     RegId (StaticInst:: *_srcRegIdxPtr)[] = nullptr;
@@ -269,6 +268,13 @@

   protected:

+    void
+ setRegIdxArrays(RegId (StaticInst:: *src)[], RegId (StaticInst:: *dest)[])
+    {
+        _srcRegIdxPtr = src;
+        _destRegIdxPtr = dest;
+    }
+
     /**
      * Base mnemonic (e.g., "add").  Used by generateDisassembly()
      * methods.  Also useful to readily identify instructions from

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/36877
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: I66adccd8851f035b5d61ace9153ae7acc57403ed
Gerrit-Change-Number: 36877
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

Reply via email to