mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
JitArm64_Tables: Move Instruction alias to the JIT class
Does what the comment says I should do :p
This commit is contained in:
@ -43,7 +43,9 @@ public:
|
|||||||
void Jit(u32) override;
|
void Jit(u32) override;
|
||||||
|
|
||||||
const char* GetName() const override { return "JITARM64"; }
|
const char* GetName() const override { return "JITARM64"; }
|
||||||
|
|
||||||
// OPCODES
|
// OPCODES
|
||||||
|
using Instruction = void (JitArm64::*)(UGeckoInstruction);
|
||||||
void FallBackToInterpreter(UGeckoInstruction inst);
|
void FallBackToInterpreter(UGeckoInstruction inst);
|
||||||
void DoNothing(UGeckoInstruction inst);
|
void DoNothing(UGeckoInstruction inst);
|
||||||
void HLEFunction(u32 hook_index);
|
void HLEFunction(u32 hook_index);
|
||||||
|
@ -10,13 +10,10 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
// Should be moved in to the Jit class
|
|
||||||
using Instruction = void (JitArm64::*)(UGeckoInstruction);
|
|
||||||
|
|
||||||
struct GekkoOPTemplate
|
struct GekkoOPTemplate
|
||||||
{
|
{
|
||||||
int opcode;
|
int opcode;
|
||||||
Instruction fn;
|
JitArm64::Instruction fn;
|
||||||
// GekkoOPInfo opinfo; // Doesn't need opinfo, Interpreter fills it out
|
// GekkoOPInfo opinfo; // Doesn't need opinfo, Interpreter fills it out
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -339,8 +336,8 @@ constexpr std::array<GekkoOPTemplate, 10> table63_2{{
|
|||||||
{31, &JitArm64::fp_arith}, // fnmaddx
|
{31, &JitArm64::fp_arith}, // fnmaddx
|
||||||
}};
|
}};
|
||||||
|
|
||||||
constexpr std::array<Instruction, 64> dynaOpTable = [] {
|
constexpr std::array<JitArm64::Instruction, 64> dynaOpTable = [] {
|
||||||
std::array<Instruction, 64> table{};
|
std::array<JitArm64::Instruction, 64> table{};
|
||||||
|
|
||||||
for (auto& tpl : table)
|
for (auto& tpl : table)
|
||||||
{
|
{
|
||||||
@ -355,8 +352,8 @@ constexpr std::array<Instruction, 64> dynaOpTable = [] {
|
|||||||
return table;
|
return table;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
constexpr std::array<Instruction, 1024> dynaOpTable4 = [] {
|
constexpr std::array<JitArm64::Instruction, 1024> dynaOpTable4 = [] {
|
||||||
std::array<Instruction, 1024> table{};
|
std::array<JitArm64::Instruction, 1024> table{};
|
||||||
|
|
||||||
for (auto& entry : table)
|
for (auto& entry : table)
|
||||||
{
|
{
|
||||||
@ -391,8 +388,8 @@ constexpr std::array<Instruction, 1024> dynaOpTable4 = [] {
|
|||||||
return table;
|
return table;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
constexpr std::array<Instruction, 1024> dynaOpTable19 = [] {
|
constexpr std::array<JitArm64::Instruction, 1024> dynaOpTable19 = [] {
|
||||||
std::array<Instruction, 1024> table{};
|
std::array<JitArm64::Instruction, 1024> table{};
|
||||||
|
|
||||||
for (auto& entry : table)
|
for (auto& entry : table)
|
||||||
{
|
{
|
||||||
@ -407,8 +404,8 @@ constexpr std::array<Instruction, 1024> dynaOpTable19 = [] {
|
|||||||
return table;
|
return table;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
constexpr std::array<Instruction, 1024> dynaOpTable31 = [] {
|
constexpr std::array<JitArm64::Instruction, 1024> dynaOpTable31 = [] {
|
||||||
std::array<Instruction, 1024> table{};
|
std::array<JitArm64::Instruction, 1024> table{};
|
||||||
|
|
||||||
for (auto& entry : table)
|
for (auto& entry : table)
|
||||||
{
|
{
|
||||||
@ -423,8 +420,8 @@ constexpr std::array<Instruction, 1024> dynaOpTable31 = [] {
|
|||||||
return table;
|
return table;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
constexpr std::array<Instruction, 32> dynaOpTable59 = [] {
|
constexpr std::array<JitArm64::Instruction, 32> dynaOpTable59 = [] {
|
||||||
std::array<Instruction, 32> table{};
|
std::array<JitArm64::Instruction, 32> table{};
|
||||||
|
|
||||||
for (auto& entry : table)
|
for (auto& entry : table)
|
||||||
{
|
{
|
||||||
@ -439,8 +436,8 @@ constexpr std::array<Instruction, 32> dynaOpTable59 = [] {
|
|||||||
return table;
|
return table;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
constexpr std::array<Instruction, 1024> dynaOpTable63 = [] {
|
constexpr std::array<JitArm64::Instruction, 1024> dynaOpTable63 = [] {
|
||||||
std::array<Instruction, 1024> table{};
|
std::array<JitArm64::Instruction, 1024> table{};
|
||||||
|
|
||||||
for (auto& entry : table)
|
for (auto& entry : table)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user