diff options
author | comex | 2015-01-21 17:02:52 -0500 |
---|---|---|
committer | comex | 2015-01-21 17:03:21 -0500 |
commit | 9fbf8080fb308d9c6dad8c534ad8892c2d715087 (patch) | |
tree | 3415053faf262f7ad2766d18c0885d81ba7cbad2 /lib/jump-dis.c | |
parent | forgot to actually check this in (diff) | |
download | substitute-9fbf8080fb308d9c6dad8c534ad8892c2d715087.tar.gz |
minor cleanup - stop caring about thumb outside of arch-specific code
(and fix makefile bug where files whose names contained 'arm' would
always be ldid'd)
Diffstat (limited to '')
-rw-r--r-- | lib/jump-dis.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/jump-dis.c b/lib/jump-dis.c index 2a4f94c..5e06460 100644 --- a/lib/jump-dis.c +++ b/lib/jump-dis.c @@ -25,7 +25,6 @@ struct jump_dis_ctx { uintptr_t pc; uintptr_t pc_patch_start; uintptr_t pc_patch_end; - bool pc_low_bit; unsigned op; const void *ptr; int op_size; @@ -119,15 +118,15 @@ static INLINE UNUSED void jump_dis_bad(struct jump_dis_ctx *ctx) { static void jump_dis_dis(struct jump_dis_ctx *ctx); -bool jump_dis_main(const void *code_ptr, uintptr_t pc_patch_start, - uintptr_t pc_patch_end, bool pc_low_bit) { +bool jump_dis_main(void *code_ptr, uintptr_t pc_patch_start, uintptr_t pc_patch_end, + struct arch_dis_ctx initial_dis_ctx) { bool ret; struct jump_dis_ctx ctx; memset(&ctx, 0, sizeof(ctx)); ctx.pc_patch_start = pc_patch_start; ctx.pc_patch_end = pc_patch_end; - ctx.pc_low_bit = pc_low_bit; ctx.pc = pc_patch_end; + ctx.arch = initial_dis_ctx; while (1) { ctx.bad_insn = false; ctx.continue_after_this_insn = true; |