From a5aae0726039d8b43f1a45bf2167320c55c9de62 Mon Sep 17 00:00:00 2001 From: Dani Messerman Date: Wed, 6 May 2015 23:43:34 +0300 Subject: [PATCH] Missing #if`s --- src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp index c73d6b292..614c1e76f 100644 --- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp +++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp @@ -3654,10 +3654,12 @@ static int InterpreterTranslate(ARMul_State* cpu, int& bb_start, u32 addr) { translated: phys_addr += inst_size; +#if ENABLE_BINARY_TRANSLATION if (BinaryTranslationLoader::CanRun(phys_addr, cpu->TFlag)) { inst_base->br = BINARY_TRANSLATED; } +#endif if ((phys_addr & 0xfff) == 0) { inst_base->br = END_OF_PAGE; } @@ -3719,10 +3721,15 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) { num_instrs++; \ goto *InstLabel[inst_base->idx] #else +#if ENABLE_BINARY_TRANSLATION +#define BINARY_TRANSLATION_VERIFY_CALLBACK BinaryTranslationLoader::VerifyCallback(); +#else +#define BINARY_TRANSLATION_VERIFY_CALLBACK +#endif #define GOTO_NEXT_INST \ if (num_instrs >= cpu->NumInstrsToExecute) goto END; \ num_instrs++; \ - BinaryTranslationLoader::VerifyCallback(); \ + BINARY_TRANSLATION_VERIFY_CALLBACK \ switch(inst_base->idx) { \ case 0: goto VMLA_INST; \ case 1: goto VMLS_INST; \