From 066a1fa86407c80c3b7ef2c3e8c86f1ffbd2929d Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 19 Jan 2015 19:08:48 -0500 Subject: some reorganization --- lib/dis.h | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'lib/dis.h') diff --git a/lib/dis.h b/lib/dis.h index 7a53f27..675cf17 100644 --- a/lib/dis.h +++ b/lib/dis.h @@ -107,22 +107,6 @@ static const unsigned null_op = -0x100; return; \ } while (0) -#if defined(TARGET_x86_64) - #define MIN_INSN_SIZE 1 - #error "no x86 dis yet" - struct arch_dis_ctx {}; -#elif defined(TARGET_i386) - #define MIN_INSN_SIZE 1 - #error "no x86 dis yet" - struct arch_dis_ctx {}; -#elif defined(TARGET_arm) - #define MIN_INSN_SIZE 2 - #define TARGET_DIS_HEADER "dis-arm-multi.inc.h" - struct arch_dis_ctx { unsigned thumb_it_length; }; - enum { IS_LDRD_STRD = 1 << 16 }; -#elif defined(TARGET_arm64) - #define MIN_INSN_SIZE 4 - #define TARGET_DIS_HEADER "dis-arm64.inc.h" - struct arch_dis_ctx {}; +#ifndef TARGET_DIS_SUPPORTED + #error "no disassembler for the target architecture yet" #endif - -- cgit v1.2.3