From f2c8fcc6064f330f3169e9ce31e1906a7c148c33 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 5 Mar 2018 23:12:36 -0800 Subject: sparc: Passify a new g++ warning. g++ seems to think there are some missing brackets when initializing the sparc fault information. Passify it by adding extra brackets. Change-Id: I826995f88b8ac8a21721c949a244dec480831b80 Reviewed-on: https://gem5-review.googlesource.com/8763 Maintainer: Jason Lowe-Power Reviewed-by: Gabe Black --- src/arch/sparc/faults.cc | 110 +++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 55 deletions(-) (limited to 'src/arch/sparc') diff --git a/src/arch/sparc/faults.cc b/src/arch/sparc/faults.cc index c5263cf58..6375fa5fe 100644 --- a/src/arch/sparc/faults.cc +++ b/src/arch/sparc/faults.cc @@ -52,226 +52,226 @@ namespace SparcISA template<> SparcFaultBase::FaultVals SparcFault::vals -("power_on_reset", 0x001, 0, {H, H, H}); +("power_on_reset", 0x001, 0, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("watch_dog_reset", 0x002, 120, {H, H, H}); +("watch_dog_reset", 0x002, 120, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("externally_initiated_reset", 0x003, 110, {H, H, H}); +("externally_initiated_reset", 0x003, 110, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("software_initiated_reset", 0x004, 130, {SH, SH, H}); +("software_initiated_reset", 0x004, 130, {{SH, SH, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("RED_state_exception", 0x005, 1, {H, H, H}); +("RED_state_exception", 0x005, 1, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("store_error", 0x007, 201, {H, H, H}); +("store_error", 0x007, 201, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("instruction_access_exception", 0x008, 300, {H, H, H}); +("instruction_access_exception", 0x008, 300, {{H, H, H}}); //XXX This trap is apparently dropped from ua2005 /*template<> SparcFaultBase::FaultVals SparcFault::vals - {"inst_mmu", 0x009, 2, {H, H, H}};*/ + ("inst_mmu", 0x009, 2, {{H, H, H}});*/ template<> SparcFaultBase::FaultVals SparcFault::vals -("instruction_access_error", 0x00A, 400, {H, H, H}); +("instruction_access_error", 0x00A, 400, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("illegal_instruction", 0x010, 620, {H, H, H}); +("illegal_instruction", 0x010, 620, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("privileged_opcode", 0x011, 700, {P, SH, SH}); +("privileged_opcode", 0x011, 700, {{P, SH, SH}}); //XXX This trap is apparently dropped from ua2005 /*template<> SparcFaultBase::FaultVals SparcFault::vals - {"unimp_ldd", 0x012, 6, {H, H, H}};*/ + ("unimp_ldd", 0x012, 6, {{H, H, H}});*/ //XXX This trap is apparently dropped from ua2005 /*template<> SparcFaultBase::FaultVals SparcFault::vals - {"unimp_std", 0x013, 6, {H, H, H}};*/ + ("unimp_std", 0x013, 6, {{H, H, H}});*/ template<> SparcFaultBase::FaultVals SparcFault::vals -("fp_disabled", 0x020, 800, {P, P, H}); +("fp_disabled", 0x020, 800, {{P, P, H}}); /* SPARCv8 and SPARCv9 define just fp_disabled trap. SIMD is not contemplated * as a separate part. Therefore, we use the same code and TT */ template<> SparcFaultBase::FaultVals - SparcFault::vals = -{"fp_disabled", 0x020, 800, {P, P, H}}; + SparcFault::vals +("fp_disabled", 0x020, 800, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("fp_exception_ieee_754", 0x021, 1110, {P, P, H}); +("fp_exception_ieee_754", 0x021, 1110, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("fp_exception_other", 0x022, 1110, {P, P, H}); +("fp_exception_other", 0x022, 1110, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("tag_overflow", 0x023, 1400, {P, P, H}); +("tag_overflow", 0x023, 1400, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("clean_window", 0x024, 1010, {P, P, H}); +("clean_window", 0x024, 1010, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("division_by_zero", 0x028, 1500, {P, P, H}); +("division_by_zero", 0x028, 1500, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("internal_processor_error", 0x029, 4, {H, H, H}); +("internal_processor_error", 0x029, 4, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("instruction_invalid_tsb_entry", 0x02A, 210, {H, H, SH}); +("instruction_invalid_tsb_entry", 0x02A, 210, {{H, H, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("data_invalid_tsb_entry", 0x02B, 1203, {H, H, H}); +("data_invalid_tsb_entry", 0x02B, 1203, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("data_access_exception", 0x030, 1201, {H, H, H}); +("data_access_exception", 0x030, 1201, {{H, H, H}}); //XXX This trap is apparently dropped from ua2005 /*template<> SparcFaultBase::FaultVals SparcFault::vals - {"data_mmu", 0x031, 12, {H, H, H}};*/ + ("data_mmu", 0x031, 12, {{H, H, H}});*/ template<> SparcFaultBase::FaultVals SparcFault::vals -("data_access_error", 0x032, 1210, {H, H, H}); +("data_access_error", 0x032, 1210, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("data_access_protection", 0x033, 1207, {H, H, H}); +("data_access_protection", 0x033, 1207, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("mem_address_not_aligned", 0x034, 1020, {H, H, H}); +("mem_address_not_aligned", 0x034, 1020, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("LDDF_mem_address_not_aligned", 0x035, 1010, {H, H, H}); +("LDDF_mem_address_not_aligned", 0x035, 1010, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("STDF_mem_address_not_aligned", 0x036, 1010, {H, H, H}); +("STDF_mem_address_not_aligned", 0x036, 1010, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("privileged_action", 0x037, 1110, {H, H, SH}); +("privileged_action", 0x037, 1110, {{H, H, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("LDQF_mem_address_not_aligned", 0x038, 1010, {H, H, H}); +("LDQF_mem_address_not_aligned", 0x038, 1010, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("STQF_mem_address_not_aligned", 0x039, 1010, {H, H, H}); +("STQF_mem_address_not_aligned", 0x039, 1010, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("instruction_real_translation_miss", 0x03E, 208, {H, H, SH}); +("instruction_real_translation_miss", 0x03E, 208, {{H, H, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("data_real_translation_miss", 0x03F, 1203, {H, H, H}); +("data_real_translation_miss", 0x03F, 1203, {{H, H, H}}); //XXX This trap is apparently dropped from ua2005 /*template<> SparcFaultBase::FaultVals SparcFault::vals - {"async_data", 0x040, 2, {H, H, H}};*/ + ("async_data", 0x040, 2, {{H, H, H}});*/ template<> SparcFaultBase::FaultVals SparcFault::vals -("interrupt_level_n", 0x040, 0, {P, P, SH}); +("interrupt_level_n", 0x040, 0, {{P, P, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("hstick_match", 0x05E, 1601, {H, H, H}); +("hstick_match", 0x05E, 1601, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("trap_level_zero", 0x05F, 202, {H, H, SH}); +("trap_level_zero", 0x05F, 202, {{H, H, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("interrupt_vector", 0x060, 2630, {H, H, H}); +("interrupt_vector", 0x060, 2630, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("PA_watchpoint", 0x061, 1209, {H, H, H}); +("PA_watchpoint", 0x061, 1209, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("VA_watchpoint", 0x062, 1120, {P, P, SH}); +("VA_watchpoint", 0x062, 1120, {{P, P, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("fast_instruction_access_MMU_miss", 0x064, 208, {H, H, SH}); +("fast_instruction_access_MMU_miss", 0x064, 208, {{H, H, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("fast_data_access_MMU_miss", 0x068, 1203, {H, H, H}); +("fast_data_access_MMU_miss", 0x068, 1203, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("fast_data_access_protection", 0x06C, 1207, {H, H, H}); +("fast_data_access_protection", 0x06C, 1207, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("instruction_break", 0x076, 610, {H, H, H}); +("instruction_break", 0x076, 610, {{H, H, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("cpu_mondo", 0x07C, 1608, {P, P, SH}); +("cpu_mondo", 0x07C, 1608, {{P, P, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("dev_mondo", 0x07D, 1611, {P, P, SH}); +("dev_mondo", 0x07D, 1611, {{P, P, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("resume_error", 0x07E, 3330, {P, P, SH}); +("resume_error", 0x07E, 3330, {{P, P, SH}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("spill_n_normal", 0x080, 900, {P, P, H}); +("spill_n_normal", 0x080, 900, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("spill_n_other", 0x0A0, 900, {P, P, H}); +("spill_n_other", 0x0A0, 900, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("fill_n_normal", 0x0C0, 900, {P, P, H}); +("fill_n_normal", 0x0C0, 900, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("fill_n_other", 0x0E0, 900, {P, P, H}); +("fill_n_other", 0x0E0, 900, {{P, P, H}}); template<> SparcFaultBase::FaultVals SparcFault::vals -("trap_instruction", 0x100, 1602, {P, P, H}); +("trap_instruction", 0x100, 1602, {{P, P, H}}); /** * This causes the thread context to enter RED state. This causes the side -- cgit v1.2.3