From 59d7fc6b26f2cbbed09476499f04a25f886da984 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 19 Sep 2011 06:17:20 -0700 Subject: MIPS: Consolidate the two AddressErrorFault variants. --- src/arch/mips/faults.hh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/arch/mips/faults.hh') diff --git a/src/arch/mips/faults.hh b/src/arch/mips/faults.hh index f04f757f0..c7ed8e9bf 100644 --- a/src/arch/mips/faults.hh +++ b/src/arch/mips/faults.hh @@ -93,8 +93,12 @@ class NonMaskableInterrupt : public MipsFault class AddressErrorFault : public MipsFault { + protected: + Addr vaddr; + bool store; public: - AddressErrorFault(Addr vaddr) { badVAddr = vaddr; } + AddressErrorFault(Addr _vaddr, bool _store) : vaddr(_vaddr), store(_store) + {} #if FULL_SYSTEM void invoke(ThreadContext * tc, StaticInstPtr inst = StaticInst::nullStaticInstPtr); @@ -102,16 +106,6 @@ class AddressErrorFault : public MipsFault }; -class StoreAddressErrorFault : public MipsFault -{ - public: - StoreAddressErrorFault(Addr vaddr) { badVAddr = vaddr; } -#if FULL_SYSTEM - void invoke(ThreadContext * tc, - StaticInstPtr inst = StaticInst::nullStaticInstPtr); -#endif -}; - static inline Fault genMachineCheckFault() { return new MachineCheckFault; -- cgit v1.2.3