aboutsummaryrefslogtreecommitdiff
path: root/lib/dis.h
diff options
context:
space:
mode:
authorcomex2015-01-19 19:08:48 -0500
committercomex2015-01-19 19:08:48 -0500
commit066a1fa86407c80c3b7ef2c3e8c86f1ffbd2929d (patch)
tree6f5a4abebbcb4cf034ab009a49c167ac95da418e /lib/dis.h
parentadd the required copy of the GPL; clarify license text (diff)
downloadsubstitute-066a1fa86407c80c3b7ef2c3e8c86f1ffbd2929d.tar.gz
some reorganization
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
-