From: Gabe Black Date: Mon, 19 Sep 2011 13:17:20 +0000 (-0700) Subject: MIPS: Move the genMachineCheckFault function near MachineCheckFault. X-Git-Tag: stable_2012_02_02~64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffeab063788c576f072026c153e7be497d20e8a9;p=gem5.git MIPS: Move the genMachineCheckFault function near MachineCheckFault. Since they're so closely linked, they should be next to each other in the file. --- diff --git a/src/arch/mips/faults.hh b/src/arch/mips/faults.hh index c7ed8e9bf..cd1cd7040 100644 --- a/src/arch/mips/faults.hh +++ b/src/arch/mips/faults.hh @@ -85,6 +85,11 @@ class MachineCheckFault : public MipsFault bool isMachineCheckFault() {return true;} }; +static inline Fault genMachineCheckFault() +{ + return new MachineCheckFault; +} + class NonMaskableInterrupt : public MipsFault { public: @@ -106,11 +111,6 @@ class AddressErrorFault : public MipsFault }; -static inline Fault genMachineCheckFault() -{ - return new MachineCheckFault; -} - class ResetFault : public MipsFault { public: