From: Giacomo Travaglini Date: Wed, 26 Aug 2020 10:31:07 +0000 (+0100) Subject: arch-arm: Fix coding style in addressTranslation methods X-Git-Tag: v20.1.0.0~205 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fceff60c415748f20fe513dfff97fe3a4118d5b;p=gem5.git arch-arm: Fix coding style in addressTranslation methods armFault -> arm_fault Change-Id: I6263b105f8757b34dd15a06b16abe7289073614d Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33434 Reviewed-by: Nikos Nikoleris Tested-by: kokoro --- diff --git a/src/arch/arm/isa.cc b/src/arch/arm/isa.cc index 6ef9fe3f9..0c312d01d 100644 --- a/src/arch/arm/isa.cc +++ b/src/arch/arm/isa.cc @@ -2359,15 +2359,15 @@ ISA::addressTranslation64(TLB::ArmTranslationType tran_type, "MISCREG: Translated addr %#x: PAR_EL1: %#xx\n", val, par); } else { - ArmFault *armFault = static_cast(fault.get()); - armFault->update(tc); + ArmFault *arm_fault = static_cast(fault.get()); + arm_fault->update(tc); // Set fault bit and FSR - FSR fsr = armFault->getFsr(tc); + FSR fsr = arm_fault->getFsr(tc); par.f = 1; // F bit par.fst = fsr.status; // FST - par.ptw = (armFault->iss() >> 7) & 0x1; // S1PTW - par.s = armFault->isStage2() ? 1 : 0; // S + par.ptw = (arm_fault->iss() >> 7) & 0x1; // S1PTW + par.s = arm_fault->isStage2() ? 1 : 0; // S DPRINTF(MiscRegs, "MISCREG: Translated addr %#x fault fsr %#x: PAR: %#x\n", @@ -2418,15 +2418,15 @@ ISA::addressTranslation(TLB::ArmTranslationType tran_type, "MISCREG: Translated addr 0x%08x: PAR: 0x%08x\n", val, par); } else { - ArmFault *armFault = static_cast(fault.get()); - armFault->update(tc); + ArmFault *arm_fault = static_cast(fault.get()); + arm_fault->update(tc); // Set fault bit and FSR - FSR fsr = armFault->getFsr(tc); + FSR fsr = arm_fault->getFsr(tc); par.f = 0x1; // F bit par.lpae = fsr.lpae; - par.ptw = (armFault->iss() >> 7) & 0x1; - par.s = armFault->isStage2() ? 1 : 0; + par.ptw = (arm_fault->iss() >> 7) & 0x1; + par.s = arm_fault->isStage2() ? 1 : 0; if (par.lpae) { // LPAE - rearange fault status