diff --git a/api/samples/instrace_simple.c b/api/samples/instrace_simple.c index 866aa68aff6..b81f84ef635 100644 --- a/api/samples/instrace_simple.c +++ b/api/samples/instrace_simple.c @@ -226,7 +226,7 @@ event_app_instruction(void *drcontext, void *tag, instrlist_t *bb, * It is ok to skip a few clean calls on predicated instructions, * since the buffer will be dumped later by other clean calls. */ - IF_X86_ELSE(true, !instr_is_predicated(instr)) + IF_ARM_ELSE(!instr_is_predicated(instr), true) /* XXX i#1698: there are constraints for code between ldrex/strex pairs, * so we minimize the instrumentation in between by skipping the clean call. * We're relying a bit on the typical code sequence with either ldrex..strex @@ -237,7 +237,7 @@ event_app_instruction(void *drcontext, void *tag, instrlist_t *bb, * Using a fault to handle a full buffer should be more robust, and the * forthcoming buffer filling API (i#513) will provide that. */ - IF_ARM(&& !instr_is_exclusive_store(instr))) + IF_AARCHXX(&& !instr_is_exclusive_store(instr))) dr_insert_clean_call(drcontext, bb, instr, (void *)clean_call, false, 0); return DR_EMIT_DEFAULT; diff --git a/api/samples/memtrace_simple.c b/api/samples/memtrace_simple.c index 6c53aef9f21..f62c0f317d6 100644 --- a/api/samples/memtrace_simple.c +++ b/api/samples/memtrace_simple.c @@ -320,7 +320,7 @@ event_app_instruction(void *drcontext, void *tag, instrlist_t *bb, * It is ok to skip a few clean calls on predicated instructions, * since the buffer will be dumped later by other clean calls. */ - IF_X86_ELSE(true, !instr_is_predicated(instr)) + IF_ARM_ELSE(!instr_is_predicated(instr), true) /* XXX i#1698: there are constraints for code between ldrex/strex pairs, * so we minimize the instrumentation in between by skipping the clean call. * As we're only inserting instrumentation on a memory reference, and the @@ -331,7 +331,7 @@ event_app_instruction(void *drcontext, void *tag, instrlist_t *bb, * Using a fault to handle a full buffer should be more robust, and the * forthcoming buffer filling API (i#513) will provide that. */ - IF_ARM(&& !instr_is_exclusive_store(instr))) + IF_AARCHXX(&& !instr_is_exclusive_store(instr))) dr_insert_clean_call(drcontext, bb, instr, (void *)clean_call, false, 0); return DR_EMIT_DEFAULT;