arch-arm: Add initial support for SVE contiguous loads/stores
[gem5.git] / src / arch / sparc / decoder.hh
index e7a806d81bd920df54645dcbf0cce7a6c4a6f1de..6fa506f37a65d200fb92717c8018e3235295aeaa 100644 (file)
 namespace SparcISA
 {
 
+class ISA;
 class Decoder
 {
   protected:
     // The extended machine instruction being generated
     ExtMachInst emi;
     bool instDone;
-    MiscReg asi;
+    RegVal asi;
 
   public:
-    Decoder() : instDone(false), asi(0)
+    Decoder(ISA* isa = nullptr) : instDone(false), asi(0)
     {}
 
     void process() {}
@@ -92,11 +93,13 @@ class Decoder
     }
 
     void
-    setContext(MiscReg _asi)
+    setContext(RegVal _asi)
     {
         asi = _asi;
     }
 
+    void takeOverFrom(Decoder *old) {}
+
   protected:
     /// A cache of decoded instruction objects.
     static GenericISA::BasicDecodeCache defaultCache;