diff options
author | Brandon Potter <brandon.potter@amd.com> | 2015-07-20 09:15:21 -0500 |
---|---|---|
committer | Brandon Potter <brandon.potter@amd.com> | 2015-07-20 09:15:21 -0500 |
commit | a7a0fd2c58cbd0e8e7e83ad8e7f7729a32527c02 (patch) | |
tree | 9acb2dd423edc315cee266ef0bccad556ca574e5 /src/sim | |
parent | 6f549419ebf588986daa99135c7cdb1b11002b56 (diff) | |
download | gem5-a7a0fd2c58cbd0e8e7e83ad8e7f7729a32527c02.tar.xz |
style: [patch 12/22] fix preliminary style issues for subsequent fault patch
This changeset add spaces in a few spots and removes an unnecessary comment.
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/faults.hh | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/sim/faults.hh b/src/sim/faults.hh index dd42c35ab..da0ea22fa 100644 --- a/src/sim/faults.hh +++ b/src/sim/faults.hh @@ -41,13 +41,6 @@ class ThreadContext; typedef const char * FaultName; typedef Stats::Scalar FaultStat; -// Each class has it's name statically define in _name, -// and has a virtual function to access it's name. -// The function is necessary because otherwise, all objects -// which are being accessed cast as a FaultBase * (namely -// all faults returned using the Fault type) will use the -// generic FaultBase name. - class FaultBase { public: @@ -65,7 +58,7 @@ class UnimpFault : public FaultBase : panicStr(_str) { } - FaultName name() const {return "Unimplemented simulator feature";} + FaultName name() const { return "Unimplemented simulator feature"; } void invoke(ThreadContext * tc, const StaticInstPtr &inst = StaticInst::nullStaticInstPtr); }; @@ -73,7 +66,7 @@ class UnimpFault : public FaultBase class ReExec : public FaultBase { public: - virtual FaultName name() const { return "Re-execution fault";} + virtual FaultName name() const { return "Re-execution fault"; } ReExec() {} void invoke(ThreadContext *tc, const StaticInstPtr &inst = StaticInst::nullStaticInstPtr); @@ -84,7 +77,7 @@ class GenericPageTableFault : public FaultBase private: Addr vaddr; public: - FaultName name() const {return "Generic page table fault";} + FaultName name() const { return "Generic page table fault"; } GenericPageTableFault(Addr va) : vaddr(va) {} void invoke(ThreadContext * tc, const StaticInstPtr &inst = StaticInst::nullStaticInstPtr); @@ -95,7 +88,7 @@ class GenericAlignmentFault : public FaultBase private: Addr vaddr; public: - FaultName name() const {return "Generic alignment fault";} + FaultName name() const { return "Generic alignment fault"; } GenericAlignmentFault(Addr va) : vaddr(va) {} void invoke(ThreadContext * tc, const StaticInstPtr &inst = StaticInst::nullStaticInstPtr); |