]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
JIT: minor changes in compemu_support.cpp
authorFrode Solheim <frode@fs-uae.net>
Sun, 6 Sep 2015 20:14:25 +0000 (22:14 +0200)
committerFrode Solheim <frode@fs-uae.net>
Sun, 6 Sep 2015 20:17:06 +0000 (22:17 +0200)
jit/compemu_support.cpp

index 8ef35a4b36bd132606188dd8cc0db4da4e457534..97e71d74ff50ce024414d2016c2ffa2a2d5ef0c9 100644 (file)
@@ -4215,7 +4215,7 @@ void compile_block(cpu_history* pc_hist, int blocklen, int totcycles)
                                        uae_u32* tba;
                                        blockinfo* tbi;
 
-                                       tbi=get_blockinfo_addr_new((void*)v,1);
+                                       tbi=get_blockinfo_addr_new((void*)(uintptr)v,1);
                                        match_states(tbi);
 
                                        raw_sub_l_mi((uae_u32)&countdown,scaled_cycles(totcycles));
@@ -4307,7 +4307,12 @@ void compile_block(cpu_history* pc_hist, int blocklen, int totcycles)
                if (current_compile_p>=max_compile_start)
                        flush_icache_hard(0, 3);
 
-               do_extra_cycles(totcycles); /* for the compilation time */
+#if PROFILE_COMPILE_TIME
+               compile_time += (clock() - start_time);
+#endif
+
+               /* Account for compilation time */
+               do_extra_cycles(totcycles);
        }
 }