From: Giacomo Travaglini Date: Fri, 9 Feb 2018 11:07:53 +0000 (+0000) Subject: arch-arm: Change ArmFault cast from reinterpret to static X-Git-Tag: v19.0.0.0~2295 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c97d3fe691e0cf8da0dfb7fc2198bedd0529b2f;p=gem5.git arch-arm: Change ArmFault cast from reinterpret to static Changing casting type in src/arch/arm/isa.cc Change-Id: Ia19b30a1bf8b1b25df149b52613a3533eaced03a Signed-off-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/8241 Reviewed-by: Brandon Potter Maintainer: Andreas Sandberg --- diff --git a/src/arch/arm/isa.cc b/src/arch/arm/isa.cc index 5d34e188a..f6677323e 100644 --- a/src/arch/arm/isa.cc +++ b/src/arch/arm/isa.cc @@ -1476,7 +1476,7 @@ ISA::setMiscReg(int misc_reg, const MiscReg &val, ThreadContext *tc) "MISCREG: Translated addr 0x%08x: PAR: 0x%08x\n", val, newVal); } else { - ArmFault *armFault = reinterpret_cast(fault.get()); + ArmFault *armFault = static_cast(fault.get()); // Set fault bit and FSR FSR fsr = armFault->getFsr(tc); @@ -1725,7 +1725,7 @@ ISA::setMiscReg(int misc_reg, const MiscReg &val, ThreadContext *tc) "MISCREG: Translated addr %#x: PAR_EL1: %#xx\n", val, newVal); } else { - ArmFault *armFault = reinterpret_cast(fault.get()); + ArmFault *armFault = static_cast(fault.get()); // Set fault bit and FSR FSR fsr = armFault->getFsr(tc);