From: Siddhesh Poyarekar Date: Tue, 20 Feb 2018 01:48:46 +0000 (+0530) Subject: arm: Remove ignored const qualifier X-Git-Tag: v19.0.0.0~2259 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35ea4a3d5e9b879fc58c39649ca60eb83e57ff47;p=gem5.git arm: Remove ignored const qualifier gcc8 warns about ignored const qualifiers (-Wignored-qualifiers) and that breaks builds. It was suggested that the warning be moved to Wextra[1] but that's probably not going to happen anytime soon. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82711 Change-Id: Ib808906deb9a1c2dccb1c34b6563db0c24c66655 Signed-off-by: Siddhesh Poyarekar Reviewed-on: https://gem5-review.googlesource.com/8562 Reviewed-by: Gabe Black Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- diff --git a/src/arch/arm/isa/insts/misc.isa b/src/arch/arm/isa/insts/misc.isa index a183f5d0a..3aeee0456 100644 --- a/src/arch/arm/isa/insts/misc.isa +++ b/src/arch/arm/isa/insts/misc.isa @@ -867,7 +867,7 @@ let {{ return std::make_shared(machInst, false, mnemonic); } - if (mcrMrc14TrapToHyp((const MiscRegIndex) op1, Hcr, Cpsr, Scr, Hdcr, + if (mcrMrc14TrapToHyp((MiscRegIndex) op1, Hcr, Cpsr, Scr, Hdcr, Hstr, Hcptr, imm)) { return std::make_shared(machInst, imm, EC_TRAPPED_CP14_MCR_MRC);