aboutsummaryrefslogtreecommitdiff
path: root/lib/dis.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dis.h')
-rw-r--r--lib/dis.h20
1 files changed, 2 insertions, 18 deletions
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
-