mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
Update GTK Prefs Editor with support for "jitinline" and "slirp" ethernet.
This commit is contained in:
parent
6b9f8e85c5
commit
8532e34485
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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 ***"},
|
||||
|
Loading…
Reference in New Issue
Block a user