From 17e8df3d6054b1875a89312121a4ce82061578fe Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Mon, 7 Sep 2015 21:10:53 +0200 Subject: [PATCH] JIT: tune_nop_fillers --- jit/compemu_support.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jit/compemu_support.cpp b/jit/compemu_support.cpp index 121e06e5..8ed559f7 100644 --- a/jit/compemu_support.cpp +++ b/jit/compemu_support.cpp @@ -2750,9 +2750,13 @@ static void align_target(uae_u32 a) if (!a) return; - /* Fill with NOPs --- makes debugging with gdb easier */ - while ((uintptr)target&(a-1)) - *target++=0x90; // Attention x86 specific code + if (tune_nop_fillers) + raw_emit_nop_filler(a - (((uintptr)target) & (a - 1))); + else { + /* Fill with NOPs --- makes debugging with gdb easier */ + while ((uintptr)target&(a-1)) + *target++=0x90; // Attention x86 specific code + } } static inline int isinrom(uintptr addr) -- 2.47.3