From 3daa847fc4736331011efc173892eb63b3efd402 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 1 Nov 2020 02:28:36 -0800 Subject: [PATCH] ARM: Add unlikely to ALU rd check --- src/arm/isa-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/isa-arm.c b/src/arm/isa-arm.c index 8f1d8e2b1..e13b6ca0d 100644 --- a/src/arm/isa-arm.c +++ b/src/arm/isa-arm.c @@ -293,7 +293,7 @@ ATTRIBUTE_NOINLINE static void _neutralS(struct ARMCore* cpu, int32_t d) { } \ BODY; \ S_BODY; \ - if (rd == ARM_PC) { \ + if (UNLIKELY(rd == ARM_PC)) { \ if (cpu->executionMode == MODE_ARM) { \ currentCycles += ARMWritePC(cpu); \ } else { \