mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-09-26 08:51:05 -04:00
Refactor runtime for move speed and better code style (#140)
* feat: added guestBranchKind enum to categorize branch types feat: added missingFunctionPolicy enum to define behaviors for missing function scenarios refactor: added handle guest branches and report missing functions feat lookupFunction to utilize new dispatch logic and improve error handling for unregistered functions * fix: fix test conflict * feat: added debug sound driver logs * feat: emmiter for return * feat: added recompiler reporter feat: added strict diagnostics flag for heavy debug calls * feat: staticc table insted of hashmap for runtime * feat: back file to ignore * feat: explode code across helpers and classes * feat: update codegen test feat: better guest nop check * feat: fix link problem on linux * feat: fix Segmentation fault
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#include "ps2_runtime.h"
|
||||
#include "runtime/ps2_memory.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
// For Unit tests link ps2_runtime without the generated runner source.
|
||||
extern const uint32_t g_ps2RecompiledFunctionTableBase = 0x00000000u;
|
||||
extern const uint32_t g_ps2RecompiledFunctionTableEnd = PS2_RAM_SIZE;
|
||||
extern const uint32_t g_ps2RecompiledFunctionTableSlotCount = (g_ps2RecompiledFunctionTableEnd - g_ps2RecompiledFunctionTableBase) >> 2;
|
||||
|
||||
PS2Runtime::RecompiledFunction g_ps2RecompiledFunctionTable[g_ps2RecompiledFunctionTableSlotCount] = {};
|
||||
|
||||
void reset_ps2_test_function_table()
|
||||
{
|
||||
std::fill(g_ps2RecompiledFunctionTable,
|
||||
g_ps2RecompiledFunctionTable + g_ps2RecompiledFunctionTableSlotCount,
|
||||
nullptr);
|
||||
}
|
||||
Reference in New Issue
Block a user