ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/prefs_editor_gtk.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/prefs_editor_gtk.cpp (file contents):
Revision 1.26 by gbeauche, 2005-01-30T21:42:14Z vs.
Revision 1.27 by gbeauche, 2005-06-06T20:11:50Z

# Line 589 | Line 589 | static GtkWidget *w_jit_fpu;
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)
# Line 597 | Line 598 | 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
# Line 618 | Line 620 | static void tb_jit_lazy_flush(GtkWidget
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   {
# Line 654 | Line 662 | static void create_jit_pane(GtkWidget *t
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   }
# Line 1163 | Line 1174 | static GList *add_ether_names(void)
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines