From d670fa60a105676a19dd91440f66dc186450b3e8 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Tue, 19 Feb 2013 05:56:06 -0500 Subject: scons: Add warning for missing field initializers This patch adds a warning for missing field initializers for both gcc and clang, and addresses the warnings that were generated. --- src/arch/arm/faults.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/arch/arm') diff --git a/src/arch/arm/faults.cc b/src/arch/arm/faults.cc index 061392f59..be1c7ecc2 100644 --- a/src/arch/arm/faults.cc +++ b/src/arch/arm/faults.cc @@ -53,31 +53,32 @@ namespace ArmISA { template<> ArmFault::FaultVals ArmFaultVals::vals = - {"reset", 0x00, MODE_SVC, 0, 0, true, true}; +{"reset", 0x00, MODE_SVC, 0, 0, true, true, FaultStat()}; template<> ArmFault::FaultVals ArmFaultVals::vals = - {"Undefined Instruction", 0x04, MODE_UNDEFINED, 4 ,2, false, false} ; +{"Undefined Instruction", 0x04, MODE_UNDEFINED, 4 ,2, false, false, + FaultStat()} ; template<> ArmFault::FaultVals ArmFaultVals::vals = - {"Supervisor Call", 0x08, MODE_SVC, 4, 2, false, false}; +{"Supervisor Call", 0x08, MODE_SVC, 4, 2, false, false, FaultStat()}; template<> ArmFault::FaultVals ArmFaultVals::vals = - {"Prefetch Abort", 0x0C, MODE_ABORT, 4, 4, true, false}; +{"Prefetch Abort", 0x0C, MODE_ABORT, 4, 4, true, false, FaultStat()}; template<> ArmFault::FaultVals ArmFaultVals::vals = - {"Data Abort", 0x10, MODE_ABORT, 8, 8, true, false}; +{"Data Abort", 0x10, MODE_ABORT, 8, 8, true, false, FaultStat()}; template<> ArmFault::FaultVals ArmFaultVals::vals = - {"IRQ", 0x18, MODE_IRQ, 4, 4, true, false}; +{"IRQ", 0x18, MODE_IRQ, 4, 4, true, false, FaultStat()}; template<> ArmFault::FaultVals ArmFaultVals::vals = - {"FIQ", 0x1C, MODE_FIQ, 4, 4, true, true}; +{"FIQ", 0x1C, MODE_FIQ, 4, 4, true, true, FaultStat()}; template<> ArmFault::FaultVals ArmFaultVals::vals = - {"Pipe Flush", 0x00, MODE_SVC, 0, 0, true, true}; // some dummy values +{"Pipe Flush", 0x00, MODE_SVC, 0, 0, true, true, FaultStat()}; // dummy values template<> ArmFault::FaultVals ArmFaultVals::vals = - {"ArmSev Flush", 0x00, MODE_SVC, 0, 0, true, true}; // some dummy values +{"ArmSev Flush", 0x00, MODE_SVC, 0, 0, true, true, FaultStat()}; // dummy values Addr ArmFault::getVector(ThreadContext *tc) { -- cgit v1.2.3