diff --git a/Common/ArmCPUDetect.cpp b/Common/ArmCPUDetect.cpp index f4df6bcd72..eabeee915c 100644 --- a/Common/ArmCPUDetect.cpp +++ b/Common/ArmCPUDetect.cpp @@ -139,8 +139,10 @@ void CPUInfo::Detect() bVFPv3 = CheckCPUFeature("vfpv3"); bTLS = CheckCPUFeature("tls"); bVFPv4 = CheckCPUFeature("vfpv4"); - bIDIVa = CheckCPUFeature("idiva"); - bIDIVt = CheckCPUFeature("idivt"); + // On some buggy kernels(Qualcomm) they show that they support VFPv4 but not IDIVa + // All VFPv4 CPUs will support IDIVa + bIDIVa = bVFPv4 || CheckCPUFeature("idiva"); + bIDIVt = bVFPv4 || CheckCPUFeature("idivt"); // These two require ARMv8 or higher bFP = CheckCPUFeature("fp"); bASIMD = CheckCPUFeature("asimd"); @@ -200,10 +202,8 @@ std::string CPUInfo::Summarize() if (bVFPv3) sum += ", VFPv3"; if (bTLS) sum += ", TLS"; if (bVFPv4) sum += ", VFPv4"; - // On some buggy kernels(Qualcomm) they show that they support VFPv4 but not IDIVa - // All VFPv4 CPUs will support IDIVa - if (bIDIVa || bVFPv4) sum += ", IDIVa"; - if (bIDIVt || bVFPv4) sum += ", IDIVt"; + if (bIDIVa) sum += ", IDIVa"; + if (bIDIVt) sum += ", IDIVt"; return sum; } diff --git a/Common/ArmEmitter.cpp b/Common/ArmEmitter.cpp index fd329a10a1..10d9aa5e48 100644 --- a/Common/ArmEmitter.cpp +++ b/Common/ArmEmitter.cpp @@ -705,8 +705,8 @@ void ARMXEmitter::WriteStoreOp(u32 Op, ARMReg Rt, ARMReg Rn, Operand2 Rm, bool R { Data = Rm.GetData(); Add = RegAdd; - break; } + break; default: // RSR not supported for any of these // We already have the warning above