589 |
|
static GtkWidget *w_jit_atraps; |
590 |
|
static GtkWidget *w_jit_cache_size; |
591 |
|
static GtkWidget *w_jit_lazy_flush; |
592 |
+ |
static GtkWidget *w_jit_follow_const_jumps; |
593 |
|
|
594 |
|
// Set sensitivity of widgets |
595 |
|
static void set_jit_sensitive(void) |
598 |
|
gtk_widget_set_sensitive(w_jit_fpu, jit_enabled); |
599 |
|
gtk_widget_set_sensitive(w_jit_cache_size, jit_enabled); |
600 |
|
gtk_widget_set_sensitive(w_jit_lazy_flush, jit_enabled); |
601 |
+ |
gtk_widget_set_sensitive(w_jit_follow_const_jumps, jit_enabled); |
602 |
|
} |
603 |
|
|
604 |
|
// "Use JIT Compiler" button toggled |
620 |
|
PrefsReplaceBool("jitlazyflush", GTK_TOGGLE_BUTTON(widget)->active); |
621 |
|
} |
622 |
|
|
623 |
+ |
// "Translate through constant jumps (inline blocks)" button toggled |
624 |
+ |
static void tb_jit_follow_const_jumps(GtkWidget *widget) |
625 |
+ |
{ |
626 |
+ |
PrefsReplaceBool("jitinline", GTK_TOGGLE_BUTTON(widget)->active); |
627 |
+ |
} |
628 |
+ |
|
629 |
|
// Read settings from widgets and set preferences |
630 |
|
static void read_jit_settings(void) |
631 |
|
{ |
662 |
|
|
663 |
|
// Lazy translation cache invalidation |
664 |
|
w_jit_lazy_flush = make_checkbox(box, STR_JIT_LAZY_CINV_CTRL, "jitlazyflush", GTK_SIGNAL_FUNC(tb_jit_lazy_flush)); |
665 |
< |
|
665 |
> |
|
666 |
> |
// Follow constant jumps (inline basic blocks) |
667 |
> |
w_jit_follow_const_jumps = make_checkbox(box, STR_JIT_FOLLOW_CONST_JUMPS, "jitinline", GTK_SIGNAL_FUNC(tb_jit_follow_const_jumps)); |
668 |
> |
|
669 |
|
set_jit_sensitive(); |
670 |
|
#endif |
671 |
|
} |
1174 |
|
} |
1175 |
|
close(s); |
1176 |
|
} |
1177 |
+ |
#ifdef HAVE_SLIRP |
1178 |
+ |
static char s_slirp[] = "slirp"; |
1179 |
+ |
glist = g_list_append(glist, s_slirp); |
1180 |
+ |
#endif |
1181 |
|
if (glist) |
1182 |
|
g_list_sort(glist, gl_str_cmp); |
1183 |
|
else |