mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 16:20:58 +00:00
(WiiU) add a helper macro for DisassemblePPCRange.
This commit is contained in:
parent
19f44ecadc
commit
f43c7254ee
@ -23,10 +23,12 @@ IMPORT(OSJoinThread);
|
|||||||
IMPORT(OSYieldThread);
|
IMPORT(OSYieldThread);
|
||||||
IMPORT(OSGetSystemTime);
|
IMPORT(OSGetSystemTime);
|
||||||
IMPORT(OSGetSystemTick);
|
IMPORT(OSGetSystemTick);
|
||||||
|
IMPORT(OSGetSymbolName);
|
||||||
|
|
||||||
IMPORT(exit);
|
IMPORT(exit);
|
||||||
IMPORT(_Exit);
|
IMPORT(_Exit);
|
||||||
IMPORT(__os_snprintf);
|
IMPORT(__os_snprintf);
|
||||||
|
IMPORT(DisassemblePPCRange);
|
||||||
|
|
||||||
IMPORT(DCFlushRange);
|
IMPORT(DCFlushRange);
|
||||||
IMPORT(DCStoreRange);
|
IMPORT(DCStoreRange);
|
||||||
|
@ -11,6 +11,10 @@ extern "C" {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
void* OSGetSymbolName(u32 addr, char* out, u32 out_size);
|
||||||
|
void DisassemblePPCRange(void *start, void *end, void* printf_func, void* GetSymbolName_func, u32 flags);
|
||||||
|
|
||||||
|
#define DEBUG_DISASM(start, count) DisassemblePPCRange((void*)start, (u32*)(start) + (count), printf, OSGetSymbolName, 0)
|
||||||
|
|
||||||
//#define DEBUG_HOLD() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);wait_for_input();}while(0)
|
//#define DEBUG_HOLD() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);wait_for_input();}while(0)
|
||||||
#define DEBUG_LINE() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);}while(0)
|
#define DEBUG_LINE() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);}while(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user