Update GTK Prefs Editor with support for "jitinline" and "slirp" ethernet.

This commit is contained in:
gbeauche 2005-06-06 20:11:50 +00:00
parent 6b9f8e85c5
commit 8532e34485
3 changed files with 18 additions and 1 deletions

View File

@ -589,6 +589,7 @@ static GtkWidget *w_jit_fpu;
static GtkWidget *w_jit_atraps;
static GtkWidget *w_jit_cache_size;
static GtkWidget *w_jit_lazy_flush;
static GtkWidget *w_jit_follow_const_jumps;
// Set sensitivity of widgets
static void set_jit_sensitive(void)
@ -597,6 +598,7 @@ static void set_jit_sensitive(void)
gtk_widget_set_sensitive(w_jit_fpu, jit_enabled);
gtk_widget_set_sensitive(w_jit_cache_size, jit_enabled);
gtk_widget_set_sensitive(w_jit_lazy_flush, jit_enabled);
gtk_widget_set_sensitive(w_jit_follow_const_jumps, jit_enabled);
}
// "Use JIT Compiler" button toggled
@ -618,6 +620,12 @@ static void tb_jit_lazy_flush(GtkWidget *widget)
PrefsReplaceBool("jitlazyflush", GTK_TOGGLE_BUTTON(widget)->active);
}
// "Translate through constant jumps (inline blocks)" button toggled
static void tb_jit_follow_const_jumps(GtkWidget *widget)
{
PrefsReplaceBool("jitinline", GTK_TOGGLE_BUTTON(widget)->active);
}
// Read settings from widgets and set preferences
static void read_jit_settings(void)
{
@ -655,6 +663,9 @@ static void create_jit_pane(GtkWidget *top)
// Lazy translation cache invalidation
w_jit_lazy_flush = make_checkbox(box, STR_JIT_LAZY_CINV_CTRL, "jitlazyflush", GTK_SIGNAL_FUNC(tb_jit_lazy_flush));
// Follow constant jumps (inline basic blocks)
w_jit_follow_const_jumps = make_checkbox(box, STR_JIT_FOLLOW_CONST_JUMPS, "jitinline", GTK_SIGNAL_FUNC(tb_jit_follow_const_jumps));
set_jit_sensitive();
#endif
}
@ -1163,6 +1174,10 @@ static GList *add_ether_names(void)
}
close(s);
}
#ifdef HAVE_SLIRP
static char s_slirp[] = "slirp";
glist = g_list_append(glist, s_slirp);
#endif
if (glist)
g_list_sort(glist, gl_str_cmp);
else

View File

@ -197,6 +197,7 @@ enum {
STR_JIT_CACHE_SIZE_8MB_LAB,
STR_JIT_CACHE_SIZE_16MB_LAB,
STR_JIT_LAZY_CINV_CTRL,
STR_JIT_FOLLOW_CONST_JUMPS,
// Mac window
STR_WINDOW_TITLE = 4000,

View File

@ -210,6 +210,7 @@ user_string_def common_strings[] = {
{STR_JIT_CACHE_SIZE_8MB_LAB, "8192"},
{STR_JIT_CACHE_SIZE_16MB_LAB, "16384"},
{STR_JIT_LAZY_CINV_CTRL, "Enable lazy invalidation of translation cache"},
{STR_JIT_FOLLOW_CONST_JUMPS, "Translate through constant jumps (inline blocks)"},
{STR_WINDOW_TITLE, "Basilisk II"},
{STR_WINDOW_TITLE_FROZEN, "Basilisk II *** FROZEN ***"},