From: Frode Solheim Date: Mon, 7 Sep 2015 19:05:01 +0000 (+0200) Subject: JIT: enabled udis86 logging (FS-UAE only) X-Git-Tag: 3200~70^2~39 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=44ccac3c2d0b0fa2d6d76a337c1791c5ecda1396;p=francis%2Fwinuae.git JIT: enabled udis86 logging (FS-UAE only) --- diff --git a/jit/codegen_x86.cpp b/jit/codegen_x86.cpp index c840982d..8782311b 100644 --- a/jit/codegen_x86.cpp +++ b/jit/codegen_x86.cpp @@ -3360,6 +3360,11 @@ cpuid(uae_u32 op, uae_u32 *eax, uae_u32 *ebx, uae_u32 *ecx, uae_u32 *edx) raw_pop_l_r(1); raw_pop_l_r(0); raw_ret(); +#ifdef USE_UDIS86 + if (!op) { /* Only disassemble once! */ + UDISFN(cpuid_space, target) + } +#endif set_target(tmp); ((compop_func*)cpuid_space)(0); diff --git a/jit/compemu_support.cpp b/jit/compemu_support.cpp index 1bde629f..ec53ca05 100644 --- a/jit/compemu_support.cpp +++ b/jit/compemu_support.cpp @@ -3612,6 +3612,9 @@ static inline void create_popalls(void) #ifdef UAE /* FIXME: write-protect popallspace? */ +#ifdef USE_UDIS86 + UDISFN(pushall_call_handler, get_target()); +#endif #else // no need to further write into popallspace vm_protect(popallspace, POPALLSPACE_SIZE, VM_PAGE_READ | VM_PAGE_EXECUTE); @@ -4516,6 +4519,10 @@ void compile_block(cpu_history* pc_hist, int blocklen, int totcycles) align_target(align_jumps); current_compile_p=get_target(); +#ifdef USE_UDIS86 + UDISFN(current_block_start_target, target) +#endif + raise_in_cl_list(bi); bi->nexthandler=current_compile_p;