From: Gabe Black Date: Tue, 18 Aug 2020 06:09:46 +0000 (-0700) Subject: x86: Fix some style issues in the microcode ROM class. X-Git-Tag: v20.1.0.0~270 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fff5b8e7451177322edfe2683313b199a0bdc4da;p=gem5.git x86: Fix some style issues in the microcode ROM class. Change-Id: I64fb5efbc9f63298c103816503f4718308032eb4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32896 Reviewed-by: Andreas Sandberg Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/arch/x86/microcode_rom.hh b/src/arch/x86/microcode_rom.hh index ad7bb99e8..4f7952a23 100644 --- a/src/arch/x86/microcode_rom.hh +++ b/src/arch/x86/microcode_rom.hh @@ -35,41 +35,46 @@ 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__