summaryrefslogtreecommitdiff
path: root/src/arch/arm
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2017-12-15 15:56:03 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2017-12-19 16:28:09 +0000
commit50749b849647f132868d5022f7523530d6c711a3 (patch)
treed497bdb4821f87eb891130d8525b1b954b61cc50 /src/arch/arm
parentd17e77f1f6075583d5b973030d2b68557d50f1b5 (diff)
downloadgem5-50749b849647f132868d5022f7523530d6c711a3.tar.xz
arch-arm: Change casting type from reinterpret to static
Cosmetic fix: prefer static_cast rather than reinterpret_cast in hierarchy. Change-Id: Ic0e5a4df9b18072a6df5ee316f674241074c349a Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/6761 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm')
-rw-r--r--src/arch/arm/faults.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/faults.cc b/src/arch/arm/faults.cc
index 0293ee100..8d019d58a 100644
--- a/src/arch/arm/faults.cc
+++ b/src/arch/arm/faults.cc
@@ -482,7 +482,7 @@ ArmFault::invoke(ThreadContext *tc, const StaticInstPtr &inst)
// extra information. This is used to generate the correct fault syndrome
// information
if (inst) {
- ArmStaticInst *armInst = reinterpret_cast<ArmStaticInst *>(inst.get());
+ ArmStaticInst *armInst = static_cast<ArmStaticInst *>(inst.get());
armInst->annotateFault(this);
}
@@ -672,7 +672,7 @@ ArmFault::invoke64(ThreadContext *tc, const StaticInstPtr &inst)
// extra information. This is used to generate the correct fault syndrome
// information
if (inst)
- reinterpret_cast<ArmStaticInst *>(inst.get())->annotateFault(this);
+ static_cast<ArmStaticInst *>(inst.get())->annotateFault(this);
// Save exception syndrome
if ((nextMode() != MODE_IRQ) && (nextMode() != MODE_FIQ))
setSyndrome(tc, getSyndromeReg64());