SPU LLVM Precompilation

Implement function SPU function discovery in images or random SPU code
This commit is contained in:
Eladash 2023-08-26 11:23:42 +03:00 committed by Elad Ashkenazi
parent 290ff5b839
commit b5faf5800b
12 changed files with 352 additions and 22 deletions

View file

@ -825,7 +825,8 @@ public:
void set_events(u32 bits);
void set_interrupt_status(bool enable);
bool check_mfc_interrupts(u32 next_pc);
static bool is_exec_code(u32 addr, const u8* ls_ptr); // Only a hint, do not rely on it other than debugging purposes
static bool is_exec_code(u32 addr, const void* ls_ptr); // Only a hint, do not rely on it other than debugging purposes
static std::vector<u32> discover_functions(const void* ls_start, u32 /*entry*/);
u32 get_ch_count(u32 ch);
s64 get_ch_value(u32 ch);
bool set_ch_value(u32 ch, u32 value);