ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/prefs_items.cpp
Revision: 1.10
Committed: 2003-10-14T10:29:17Z (20 years, 7 months ago) by gbeauche
Branch: MAIN
Changes since 1.9: +1 -0 lines
Log Message:
Add "jitblacklist" prefs item so that opcodes ranges could be excluded for
translation. This should help debugging of (badly) translated code.

Usage: jitblacklist xxxx(-yyyy)?(;xxxx(-yyyy)?)*
where xxxx/yyyy are hexadecimal numbers

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * prefs_items.cpp - Common preferences items
3     *
4 cebix 1.7 * Basilisk II (C) 1997-2002 Christian Bauer
5 cebix 1.1 *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     */
20    
21 cebix 1.2 #include "sysdeps.h"
22    
23     #include "sys.h"
24 cebix 1.1 #include "prefs.h"
25    
26    
27     // Common preferences items (those which exist on all platforms)
28     // Except for "disk", "floppy", "cdrom", "scsiX", "screen", "rom" and "ether",
29 cebix 1.3 // these are guaranteed to be in the prefs.
30 cebix 1.1 prefs_desc common_prefs_items[] = {
31 cebix 1.5 {"disk", TYPE_STRING, true, "device/file name of Mac volume"},
32     {"floppy", TYPE_STRING, true, "device/file name of Mac floppy drive"},
33     {"cdrom", TYPE_STRING, true, "device/file names of Mac CD-ROM drive"},
34     {"extfs", TYPE_STRING, false, "root path of ExtFS"},
35     {"scsi0", TYPE_STRING, false, "SCSI target for Mac SCSI ID 0"},
36     {"scsi1", TYPE_STRING, false, "SCSI target for Mac SCSI ID 1"},
37     {"scsi2", TYPE_STRING, false, "SCSI target for Mac SCSI ID 2"},
38     {"scsi3", TYPE_STRING, false, "SCSI target for Mac SCSI ID 3"},
39     {"scsi4", TYPE_STRING, false, "SCSI target for Mac SCSI ID 4"},
40     {"scsi5", TYPE_STRING, false, "SCSI target for Mac SCSI ID 5"},
41     {"scsi6", TYPE_STRING, false, "SCSI target for Mac SCSI ID 6"},
42     {"screen", TYPE_STRING, false, "video mode"},
43     {"seriala", TYPE_STRING, false, "device name of Mac serial port A"},
44     {"serialb", TYPE_STRING, false, "device name of Mac serial port B"},
45     {"ether", TYPE_STRING, false, "device name of Mac ethernet adapter"},
46 cebix 1.6 {"udptunnel", TYPE_BOOLEAN, false, "tunnel all network packets over UDP"},
47     {"udpport", TYPE_INT32, false, "IP port number for tunneling"},
48 cebix 1.5 {"rom", TYPE_STRING, false, "path of ROM file"},
49     {"bootdrive", TYPE_INT32, false, "boot drive number"},
50     {"bootdriver", TYPE_INT32, false, "boot driver number"},
51     {"ramsize", TYPE_INT32, false, "size of Mac RAM in bytes"},
52     {"frameskip", TYPE_INT32, false, "number of frames to skip in refreshed video modes"},
53     {"modelid", TYPE_INT32, false, "Mac Model ID (Gestalt Model ID minus 6)"},
54     {"cpu", TYPE_INT32, false, "CPU type (0 = 68000, 1 = 68010 etc.)"},
55     {"fpu", TYPE_BOOLEAN, false, "enable FPU emulation"},
56     {"nocdrom", TYPE_BOOLEAN, false, "don't install CD-ROM driver"},
57     {"nosound", TYPE_BOOLEAN, false, "don't enable sound output"},
58     {"noclipconversion", TYPE_BOOLEAN, false, "don't convert clipboard contents"},
59     {"nogui", TYPE_BOOLEAN, false, "disable GUI"},
60 gbeauche 1.8 {"jit", TYPE_BOOLEAN, false, "enable JIT compiler"},
61     {"jitfpu", TYPE_BOOLEAN, false, "enable JIT compilation of FPU instructions"},
62     {"jitdebug", TYPE_BOOLEAN, false, "enable JIT debugger (requires mon builtin)"},
63     {"jitcachesize", TYPE_INT32, false, "translation cache size in KB"},
64     {"jitlazyflush", TYPE_BOOLEAN, false, "enable lazy invalidation of translation cache"},
65 gbeauche 1.10 {"jitblacklist", TYPE_STRING, false, "blacklist opcodes from translation"},
66 nigel 1.9 {"keyboardtype", TYPE_INT32, false, "hardware keyboard type"},
67 cebix 1.5 {NULL, TYPE_END, false, NULL} // End of list
68 cebix 1.1 };
69    
70    
71     /*
72     * Set default values for preferences items
73     */
74    
75     void AddPrefsDefaults(void)
76     {
77     SysAddSerialPrefs();
78 cebix 1.6 PrefsAddBool("udptunnel", false);
79     PrefsAddInt32("udpport", 6066);
80 cebix 1.3 PrefsAddInt32("bootdriver", 0);
81     PrefsAddInt32("bootdrive", 0);
82 cebix 1.1 PrefsAddInt32("ramsize", 8 * 1024 * 1024);
83     PrefsAddInt32("frameskip", 6);
84     PrefsAddInt32("modelid", 5); // Mac IIci
85     PrefsAddInt32("cpu", 3); // 68030
86     PrefsAddBool("fpu", false);
87     PrefsAddBool("nocdrom", false);
88     PrefsAddBool("nosound", false);
89     PrefsAddBool("noclipconversion", false);
90     PrefsAddBool("nogui", false);
91 gbeauche 1.8
92     #if USE_JIT
93     // JIT compiler specific options
94     PrefsAddBool("jit", true);
95     PrefsAddBool("jitfpu", true);
96     PrefsAddBool("jitdebug", false);
97     PrefsAddInt32("jitcachesize", 8192);
98     PrefsAddInt32("jitlazyflush", true);
99     #else
100     PrefsAddBool("jit", false);
101     #endif
102 nigel 1.9
103     PrefsAddInt32("keyboardtype", 5);
104 cebix 1.1 }