--- BasiliskII/src/prefs_items.cpp 2001/04/01 12:11:42 1.5 +++ BasiliskII/src/prefs_items.cpp 2008/01/01 09:40:31 1.16 @@ -1,7 +1,7 @@ /* * prefs_items.cpp - Common preferences items * - * Basilisk II (C) 1997-2001 Christian Bauer + * Basilisk II (C) 1997-2008 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,6 +43,9 @@ prefs_desc common_prefs_items[] = { {"seriala", TYPE_STRING, false, "device name of Mac serial port A"}, {"serialb", TYPE_STRING, false, "device name of Mac serial port B"}, {"ether", TYPE_STRING, false, "device name of Mac ethernet adapter"}, + {"etherconfig", TYPE_STRING, false,"path of network config script"}, + {"udptunnel", TYPE_BOOLEAN, false, "tunnel all network packets over UDP"}, + {"udpport", TYPE_INT32, false, "IP port number for tunneling"}, {"rom", TYPE_STRING, false, "path of ROM file"}, {"bootdrive", TYPE_INT32, false, "boot drive number"}, {"bootdriver", TYPE_INT32, false, "boot driver number"}, @@ -55,6 +58,14 @@ prefs_desc common_prefs_items[] = { {"nosound", TYPE_BOOLEAN, false, "don't enable sound output"}, {"noclipconversion", TYPE_BOOLEAN, false, "don't convert clipboard contents"}, {"nogui", TYPE_BOOLEAN, false, "disable GUI"}, + {"jit", TYPE_BOOLEAN, false, "enable JIT compiler"}, + {"jitfpu", TYPE_BOOLEAN, false, "enable JIT compilation of FPU instructions"}, + {"jitdebug", TYPE_BOOLEAN, false, "enable JIT debugger (requires mon builtin)"}, + {"jitcachesize", TYPE_INT32, false, "translation cache size in KB"}, + {"jitlazyflush", TYPE_BOOLEAN, false, "enable lazy invalidation of translation cache"}, + {"jitinline", TYPE_BOOLEAN, false, "enable translation through constant jumps"}, + {"jitblacklist", TYPE_STRING, false, "blacklist opcodes from translation"}, + {"keyboardtype", TYPE_INT32, false, "hardware keyboard type"}, {NULL, TYPE_END, false, NULL} // End of list }; @@ -66,6 +77,8 @@ prefs_desc common_prefs_items[] = { void AddPrefsDefaults(void) { SysAddSerialPrefs(); + PrefsAddBool("udptunnel", false); + PrefsAddInt32("udpport", 6066); PrefsAddInt32("bootdriver", 0); PrefsAddInt32("bootdrive", 0); PrefsAddInt32("ramsize", 8 * 1024 * 1024); @@ -77,4 +90,18 @@ void AddPrefsDefaults(void) PrefsAddBool("nosound", false); PrefsAddBool("noclipconversion", false); PrefsAddBool("nogui", false); + +#if USE_JIT + // JIT compiler specific options + PrefsAddBool("jit", true); + PrefsAddBool("jitfpu", true); + PrefsAddBool("jitdebug", false); + PrefsAddInt32("jitcachesize", 8192); + PrefsAddBool("jitlazyflush", true); + PrefsAddBool("jitinline", true); +#else + PrefsAddBool("jit", false); +#endif + + PrefsAddInt32("keyboardtype", 5); }