From 6cff3d423e699d97d6d5723b0ad3736e3efffd9f Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 29 Aug 2014 01:41:32 -0700 Subject: [PATCH] Remove unnecessarily duplicated code in ARMStep --- src/arm/arm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/arm/arm.c b/src/arm/arm.c index bfcdfd26c..c31c91997 100644 --- a/src/arm/arm.c +++ b/src/arm/arm.c @@ -176,11 +176,7 @@ static inline void ARMStep(struct ARMCore* cpu) { cpu->gprs[ARM_PC] += WORD_SIZE_ARM; unsigned condition = opcode >> 28; - if (condition == 0xE) { - ARMInstruction instruction = _armTable[((opcode >> 16) & 0xFF0) | ((opcode >> 4) & 0x00F)]; - instruction(cpu, opcode); - return; - } else { + if (condition != 0xE) { switch (condition) { case 0x0: if (!ARM_COND_EQ) {