x86: Fix some style issues in the microcode ROM class.
authorGabe Black <gabeblack@google.com>
Tue, 18 Aug 2020 06:09:46 +0000 (23:09 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 20 Aug 2020 04:46:17 +0000 (04:46 +0000)
Change-Id: I64fb5efbc9f63298c103816503f4718308032eb4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32896
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/microcode_rom.hh

index ad7bb99e8325cbc235c5b7681e5ec69c5abedce6..4f7952a239e57830de284f47a850692f5a6d89d0 100644 (file)
 
 namespace X86ISAInst
 {
-    class MicrocodeRom
+
+class MicrocodeRom
+{
+  protected:
+
+    typedef StaticInstPtr (*GenFunc)(StaticInstPtr);
+
+    static const MicroPC numMicroops;
+
+    GenFunc *genFuncs;
+
+  public:
+    //Constructor.
+    MicrocodeRom();
+
+    //Destructor.
+    ~MicrocodeRom()
     {
-      protected:
-
-        typedef StaticInstPtr (*GenFunc)(StaticInstPtr);
-
-        static const MicroPC numMicroops;
-
-        GenFunc * genFuncs;
-
-      public:
-        //Constructor.
-        MicrocodeRom();
-
-        //Destructor.
-        ~MicrocodeRom()
-        {
-            delete [] genFuncs;
-        }
-
-        StaticInstPtr
-        fetchMicroop(MicroPC microPC, StaticInstPtr curMacroop)
-        {
-            microPC = normalMicroPC(microPC);
-            if (microPC >= numMicroops)
-                return X86ISA::badMicroop;
-            else
-                return genFuncs[microPC](curMacroop);
-        }
-    };
-}
+        delete [] genFuncs;
+    }
+
+    StaticInstPtr
+    fetchMicroop(MicroPC microPC, StaticInstPtr curMacroop)
+    {
+        microPC = normalMicroPC(microPC);
+        if (microPC >= numMicroops)
+            return X86ISA::badMicroop;
+        else
+            return genFuncs[microPC](curMacroop);
+    }
+};
+
+} // namespace X86ISAInst
 
 namespace X86ISA
 {
-    using X86ISAInst::MicrocodeRom;
+
+using X86ISAInst::MicrocodeRom;
+
 }
 
+
 #endif // __ARCH_X86_MICROCODE_ROM_HH__