mirror of
https://github.com/ARMSX2/ARMSX1.git
synced 2026-08-24 16:53:35 -07:00
Allow excluding CPU trace calls
This commit is contained in:
+3
-2
@@ -16,5 +16,6 @@ gcc psx/*.c psx/dev/*.c frontend/*.c -o bin/psxe^
|
||||
-DOS_INFO="%OS_INFO%"^
|
||||
-DREP_VERSION="%VERSION_TAG%"^
|
||||
-DREP_COMMIT_HASH="%COMMIT_HASH%"^
|
||||
-g -DLOG_USE_COLOR -lSDL2 -lSDL2main^
|
||||
-Ofast -Wno-overflow -Wall -pedantic
|
||||
-DLOG_USE_COLOR -lSDL2 -lSDL2main^
|
||||
-Ofast -Wno-overflow -Wall -pedantic^
|
||||
-ffast-math
|
||||
+2
-1
@@ -12,4 +12,5 @@ gcc -I"`"$($PSX_DIR)`"" `
|
||||
-o "bin\psxe.exe" `
|
||||
-L"`"$($SDL2_DIR)\lib`"" `
|
||||
-m64 -lSDL2main -lSDL2 -Wno-overflow `
|
||||
-g -Ofast -Wall -pedantic -DLOG_USE_COLOR
|
||||
-Wall -pedantic -DLOG_USE_COLOR `
|
||||
-ffast-math
|
||||
@@ -139,6 +139,7 @@ psx_cpu_instruction_t g_psx_cpu_bxx_table[] = {
|
||||
#define IMM16 (cpu->buf[1] & 0xffff)
|
||||
#define IMM16S ((int32_t)((int16_t)IMM16))
|
||||
|
||||
#ifdef CPU_TRACE
|
||||
#define TRACE_M(m) \
|
||||
log_trace("%08x: %-7s $%s, %+i($%s)", cpu->pc-8, m, g_mips_cc_register_names[T], IMM16S, g_mips_cc_register_names[S])
|
||||
|
||||
@@ -180,6 +181,22 @@ psx_cpu_instruction_t g_psx_cpu_bxx_table[] = {
|
||||
|
||||
#define TRACE_N(m) \
|
||||
log_trace("%08x: %-7s", cpu->pc-8, m);
|
||||
#else
|
||||
#define TRACE_M(m)
|
||||
#define TRACE_I16S(m)
|
||||
#define TRACE_I16D(m)
|
||||
#define TRACE_I5D(m)
|
||||
#define TRACE_I26(m)
|
||||
#define TRACE_RT(m)
|
||||
#define TRACE_C0M(m)
|
||||
#define TRACE_B(m)
|
||||
#define TRACE_RS(m)
|
||||
#define TRACE_MTF(m)
|
||||
#define TRACE_RD(m)
|
||||
#define TRACE_MD(m)
|
||||
#define TRACE_I20(m)
|
||||
#define TRACE_N(m)
|
||||
#endif
|
||||
|
||||
#define DO_PENDING_LOAD \
|
||||
cpu->r[cpu->load_d] = cpu->load_v; \
|
||||
|
||||
Reference in New Issue
Block a user