frontend: Relocate ExtReg handling to types.h

Same behavior, but deduplicates the code being placed across several
files
This commit is contained in:
Lioncash
2020-05-22 19:09:37 -04:00
committed by merry
parent 1900df5340
commit c4a4bdd7de
6 changed files with 21 additions and 30 deletions

View File

@@ -8,11 +8,6 @@
#include "frontend/A32/translate/impl/translate_arm.h"
namespace Dynarmic::A32 {
namespace {
ExtReg ToExtRegD(size_t base, bool bit) {
return ExtReg::D0 + (base + (bit ? 16 : 0));
}
} // Anonymous namespace
bool ArmTranslatorVisitor::asimd_VSWP(bool D, size_t Vd, bool Q, bool M, size_t Vm) {
if (Q && (Common::Bit<0>(Vd) || Common::Bit<0>(Vm))) {