diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/arch/arm/v7/arm.c | 10 | ||||
-rw-r--r-- | src/arch/arm/v7/processor.c | 5 |
3 files changed, 10 insertions, 11 deletions
@@ -1,5 +1,11 @@ 14-10-12 Cyrille Bagard <nocbos@gmail.com> + * src/arch/arm/v7/arm.c: + * src/arch/arm/v7/processor.c: + Disable or remove some debug code. + +14-10-12 Cyrille Bagard <nocbos@gmail.com> + * src/arch/arm/v7/opdefs/Makefile.am: * tools/d2c.mk: Modify and rebuild targets only when needed. diff --git a/src/arch/arm/v7/arm.c b/src/arch/arm/v7/arm.c index bd1beb8..5295ef8 100644 --- a/src/arch/arm/v7/arm.c +++ b/src/arch/arm/v7/arm.c @@ -188,9 +188,6 @@ static GArchInstruction *process_armv7_data_processing_and_miscellaneous_instruc result = NULL; - if (raw == 0xe1a0000a) - printf(" ---> data proc & misc\n"); - op = (raw >> 25) & 0x1; op1 = (raw >> 20) & 0x1f; op2 = (raw >> 4) & 0xf; @@ -314,9 +311,6 @@ static GArchInstruction *process_armv7_data_processing_register(uint32_t raw) result = NULL; - if (raw == 0xe1a0000a) - printf(" ---> data proc register !\n"); - op = (raw >> 20) & 0x1f; imm5 = (raw >> 7) & 0x1f; op2 = (raw >> 5) & 0x3; @@ -370,11 +364,7 @@ static GArchInstruction *process_armv7_data_processing_register(uint32_t raw) if (op2 == b00) { if (imm5 == b00000) - { result = armv7_read_instr_mov_register_arm(raw); - if (raw == 0xe1a0000a) - printf(" ----> GOT IT :: %p\n", result); - } else result = armv7_read_instr_lsl_immediate(raw); diff --git a/src/arch/arm/v7/processor.c b/src/arch/arm/v7/processor.c index dd2f39f..4292672 100644 --- a/src/arch/arm/v7/processor.c +++ b/src/arch/arm/v7/processor.c @@ -226,8 +226,10 @@ static GArchInstruction *g_armv7_processor_disassemble(const GArmV7Processor *pr if (!read_u32(&raw, data, &start, end, G_ARCH_PROCESSOR(proc)->endianness)) return NULL; + /* if (raw == 0xe1a0000a) printf("process @ 0x%x :: 0x%08x\n", start, raw); + */ /* if (raw == 0xe1a0000a) @@ -239,9 +241,10 @@ static GArchInstruction *g_armv7_processor_disassemble(const GArmV7Processor *pr result = process_armv7_instruction_set_encoding(raw); + /* if (raw == 0xe1a0000a) printf(" --> %p\n", result); - + */ if (result != NULL) |