From 8a123b4d757118e54b98b5cac93ab34d4680d2cf Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 27 May 2014 23:25:30 -0500 Subject: [PATCH] Remove x86_32 from the JIT block "profiler." --- Source/Core/Core/PowerPC/Profiler.h | 34 ++--------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/Source/Core/Core/PowerPC/Profiler.h b/Source/Core/Core/PowerPC/Profiler.h index 6b335d6c28..f1413e6f7b 100644 --- a/Source/Core/Core/PowerPC/Profiler.h +++ b/Source/Core/Core/PowerPC/Profiler.h @@ -7,43 +7,13 @@ #include -#ifdef _WIN32 +#define PROFILER_QUERY_PERFORMANCE_COUNTER(pt) -#if _M_X86_32 -#define PROFILER_QUERY_PERFORMANCE_COUNTER(pt) \ - LEA(32, EAX, M(pt)); PUSH(EAX); \ - CALL(QueryPerformanceCounter) -// TODO: r64 way +// TODO: Implement generic ways to do this cleanly with all supported architectures // asm write : (u64) dt += t1-t0 -#define PROFILER_ADD_DIFF_LARGE_INTEGER(pdt, pt1, pt0) \ - MOV(32, R(EAX), M(pt1)); \ - SUB(32, R(EAX), M(pt0)); \ - MOV(32, R(ECX), M(((u8*)pt1) + 4)); \ - SBB(32, R(ECX), M(((u8*)pt0) + 4)); \ - ADD(32, R(EAX), M(pdt)); \ - MOV(32, R(EDX), M(((u8*)pdt) + 4)); \ - ADC(32, R(EDX), R(ECX)); \ - MOV(32, M(pdt), R(EAX)); \ - MOV(32, M(((u8*)pdt) + 4), R(EDX)) - -#define PROFILER_VPUSH PUSH(EAX);PUSH(ECX);PUSH(EDX) -#define PROFILER_VPOP POP(EDX);POP(ECX);POP(EAX) - -#else - -#define PROFILER_QUERY_PERFORMANCE_COUNTER(pt) #define PROFILER_ADD_DIFF_LARGE_INTEGER(pdt, pt1, pt0) #define PROFILER_VPUSH #define PROFILER_VPOP -#endif - -#else -// TODO -#define PROFILER_QUERY_PERFORMANCE_COUNTER(pt) -#define PROFILER_ADD_DIFF_LARGE_INTEGER(pdt, pt1, pt0) -#define PROFILER_VPUSH -#define PROFILER_VPOP -#endif struct BlockStat {