summaryrefslogtreecommitdiff
path: root/src/arch/mips/faults.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-09-19 06:17:20 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-09-19 06:17:20 -0700
commitffeab063788c576f072026c153e7be497d20e8a9 (patch)
treeea220f199392228dbc1f885d80d00afd028f3697 /src/arch/mips/faults.hh
parent59d7fc6b26f2cbbed09476499f04a25f886da984 (diff)
downloadgem5-ffeab063788c576f072026c153e7be497d20e8a9.tar.xz
MIPS: Move the genMachineCheckFault function near MachineCheckFault.
Since they're so closely linked, they should be next to each other in the file.
Diffstat (limited to 'src/arch/mips/faults.hh')
-rw-r--r--src/arch/mips/faults.hh10
1 files changed, 5 insertions, 5 deletions
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<MachineCheckFault>
bool isMachineCheckFault() {return true;}
};
+static inline Fault genMachineCheckFault()
+{
+ return new MachineCheckFault;
+}
+
class NonMaskableInterrupt : public MipsFault<NonMaskableInterrupt>
{
public:
@@ -106,11 +111,6 @@ class AddressErrorFault : public MipsFault<AddressErrorFault>
};
-static inline Fault genMachineCheckFault()
-{
- return new MachineCheckFault;
-}
-
class ResetFault : public MipsFault<ResetFault>
{
public: