From 1b25e867ae9fed8ae081732b9306cf8ed62a4ef2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 16 May 2020 11:26:02 -0400 Subject: [PATCH] asimd_load_store_structures: Simplify ToExtRegD() ExtReg has a supplied operator+, so we can make use of that instead. --- src/frontend/A32/translate/impl/asimd_load_store_structures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp b/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp index 00be7239..5019ef74 100644 --- a/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp +++ b/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp @@ -10,7 +10,7 @@ namespace Dynarmic::A32 { static ExtReg ToExtRegD(size_t base, bool bit) { - return static_cast(static_cast(ExtReg::D0) + base + (bit ? 16 : 0)); + return ExtReg::D0 + (base + (bit ? 16 : 0)); } bool ArmTranslatorVisitor::v8_VLD_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t size, size_t align, Reg m) {