mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-09 06:16:28 +00:00
frontend: Relocate ExtReg handling to types.h
Same behavior, but deduplicates the code being placed across several files
This commit is contained in:
@@ -7,14 +7,6 @@
|
||||
|
||||
namespace Dynarmic::A32 {
|
||||
|
||||
static ExtReg ToExtReg(bool sz, size_t base, bool bit) {
|
||||
if (sz) {
|
||||
return static_cast<ExtReg>(static_cast<size_t>(ExtReg::D0) + base + (bit ? 16 : 0));
|
||||
} else {
|
||||
return static_cast<ExtReg>(static_cast<size_t>(ExtReg::S0) + (base << 1) + (bit ? 1 : 0));
|
||||
}
|
||||
}
|
||||
|
||||
template <typename FnT>
|
||||
bool ArmTranslatorVisitor::EmitVfpVectorOperation(bool sz, ExtReg d, ExtReg n, ExtReg m, const FnT& fn) {
|
||||
if (!ir.current_location.FPSCR().Stride()) {
|
||||
|
||||
Reference in New Issue
Block a user