PPCTables: Use std::array instead of raw C arrays

This commit is contained in:
Lioncash
2017-01-18 01:17:37 -05:00
parent 1a1ce42889
commit 6c61021eb1
5 changed files with 34 additions and 29 deletions

View File

@ -4,6 +4,9 @@
#pragma once
#include <array>
#include <cstddef>
#include "Core/PowerPC/Gekko.h"
#include "Core/PowerPC/Interpreter/Interpreter.h"
@ -92,16 +95,15 @@ struct GekkoOPInfo
int compileCount;
u32 lastUse;
};
extern GekkoOPInfo* m_infoTable[64];
extern GekkoOPInfo* m_infoTable4[1024];
extern GekkoOPInfo* m_infoTable19[1024];
extern GekkoOPInfo* m_infoTable31[1024];
extern GekkoOPInfo* m_infoTable59[32];
extern GekkoOPInfo* m_infoTable63[1024];
extern std::array<GekkoOPInfo*, 64> m_infoTable;
extern std::array<GekkoOPInfo*, 1024> m_infoTable4;
extern std::array<GekkoOPInfo*, 1024> m_infoTable19;
extern std::array<GekkoOPInfo*, 1024> m_infoTable31;
extern std::array<GekkoOPInfo*, 32> m_infoTable59;
extern std::array<GekkoOPInfo*, 1024> m_infoTable63;
extern GekkoOPInfo* m_allInstructions[512];
extern int m_numInstructions;
extern std::array<GekkoOPInfo*, 512> m_allInstructions;
extern size_t m_numInstructions;
GekkoOPInfo* GetOpInfo(UGeckoInstruction _inst);
Interpreter::Instruction GetInterpreterOp(UGeckoInstruction _inst);