From 9c97d3fe691e0cf8da0dfb7fc2198bedd0529b2f Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Fri, 9 Feb 2018 11:07:53 +0000 Subject: 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 --- src/arch/arm/isa.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/arm') 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); -- cgit v1.2.3