From e75f44a99c8f984af4c47fa9a2c8e7e9841700d8 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 12 Oct 2014 13:26:20 +0000 Subject: Disabled or removed some debug code. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@413 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 6 ++++++ src/arch/arm/v7/arm.c | 10 ---------- src/arch/arm/v7/processor.c | 5 ++++- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8eabf4..d621c81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 14-10-12 Cyrille Bagard + * src/arch/arm/v7/arm.c: + * src/arch/arm/v7/processor.c: + Disable or remove some debug code. + +14-10-12 Cyrille Bagard + * 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) -- cgit v0.11.2-87-g4458