projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d7fc6
)
MIPS: Move the genMachineCheckFault function near MachineCheckFault.
author
Gabe Black
<gblack@eecs.umich.edu>
Mon, 19 Sep 2011 13:17:20 +0000
(06:17 -0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Mon, 19 Sep 2011 13:17:20 +0000
(06:17 -0700)
Since they're so closely linked, they should be next to each other in the
file.
src/arch/mips/faults.hh
patch
|
blob
|
history
diff --git
a/src/arch/mips/faults.hh
b/src/arch/mips/faults.hh
index c7ed8e9bf0fea93331a7860855c4e97cf2e8ebf2..cd1cd7040faf4a7d3597a8afb785a4b0e2faffa4 100644
(file)
--- 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: