bochsrc.txt 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. # You may now use double quotes around pathnames, in case
  2. # your pathname includes spaces.
  3. #=======================================================================
  4. # CONFIG_INTERFACE
  5. #
  6. # The configuration interface is a series of menus or dialog boxes that
  7. # allows you to change all the settings that control Bochs's behavior.
  8. # There are two choices of configuration interface: a text mode version
  9. # called "textconfig" and a graphical version called "wx". The text
  10. # mode version uses stdin/stdout and is always compiled in. The graphical
  11. # version is only available when you use "--with-wx" on the configure
  12. # command. If you do not write a config_interface line, Bochs will
  13. # choose a default for you.
  14. #
  15. # NOTE: if you use the "wx" configuration interface, you must also use
  16. # the "wx" display library.
  17. #=======================================================================
  18. #config_interface: textconfig
  19. #config_interface: wx
  20. #=======================================================================
  21. # DISPLAY_LIBRARY
  22. #
  23. # The display library is the code that displays the Bochs VGA screen. Bochs
  24. # has a selection of about 10 different display library implementations for
  25. # different platforms. If you run configure with multiple --with-* options,
  26. # the display_library command lets you choose which one you want to run with.
  27. # If you do not write a display_library line, Bochs will choose a default for
  28. # you.
  29. #
  30. # The choices are:
  31. # x use X windows interface, cross platform
  32. # win32 use native win32 libraries
  33. # carbon use Carbon library (for MacOS X)
  34. # beos use native BeOS libraries
  35. # macintosh use MacOS pre-10
  36. # amigaos use native AmigaOS libraries
  37. # sdl use SDL library, cross platform
  38. # svga use SVGALIB library for Linux, allows graphics without X11
  39. # term text only, uses curses/ncurses library, cross platform
  40. # rfb provides an interface to AT&T's VNC viewer, cross platform
  41. # wx use wxWidgets library, cross platform
  42. # nogui no display at all
  43. #
  44. # NOTE: if you use the "wx" configuration interface, you must also use
  45. # the "wx" display library.
  46. #
  47. # Specific options:
  48. # Some display libraries now support specific option to control their
  49. # behaviour. See the examples below for currently supported options.
  50. #=======================================================================
  51. #display_library: amigaos
  52. #display_library: beos
  53. #display_library: carbon
  54. #display_library: macintosh
  55. #display_library: nogui
  56. #display_library: rfb, options="timeout=60" # time to wait for client
  57. #display_library: sdl, options="fullscreen" # startup in fullscreen mode
  58. #display_library: term
  59. #display_library: win32, options="legacyF12" # use F12 to toggle mouse
  60. #display_library: wx
  61. #display_library: x
  62. #=======================================================================
  63. # ROMIMAGE:
  64. # The ROM BIOS controls what the PC does when it first powers on.
  65. # Normally, you can use a precompiled BIOS in the source or binary
  66. # distribution called BIOS-bochs-latest. The ROM BIOS is usually loaded
  67. # starting at address 0xf0000, and it is exactly 64k long.
  68. # You can also use the environment variable $BXSHARE to specify the
  69. # location of the BIOS.
  70. # The usage of external large BIOS images (up to 512k) at memory top is
  71. # now supported, but we still recommend to use the BIOS distributed with
  72. # Bochs. Now the start address can be calculated from image size.
  73. #=======================================================================
  74. romimage: file=bochs/bios/BIOS-bochs-latest, address=0xe0000
  75. #romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top
  76. #romimage: file=mybios.bin # calculate start address from image size
  77. #=======================================================================
  78. # CPU:
  79. # This defines cpu-related parameters inside Bochs:
  80. #
  81. # COUNT:
  82. # Set the number of processors:cores per processor:threads per core
  83. # when Bochs is compiled for SMP emulation.
  84. # Bochs currently supports up to 8 threads running simultaniosly.
  85. # If Bochs is compiled without SMP support, it won't accept values
  86. # different from 1.
  87. #
  88. # RESET_ON_TRIPLE_FAULT:
  89. # Reset the CPU when triple fault occur (highly recommended) rather than
  90. # PANIC. Remember that if you trying to continue after triple fault the
  91. # simulation will be completely bogus !
  92. #
  93. # IPS:
  94. # Emulated Instructions Per Second. This is the number of IPS that bochs
  95. # is capable of running on your machine. You can recompile Bochs with
  96. # --enable-show-ips option enabled, to find your workstation's capability.
  97. # Measured IPS value will then be logged into your log file or status bar
  98. # (if supported by the gui).
  99. #
  100. # IPS is used to calibrate many time-dependent events within the bochs
  101. # simulation. For example, changing IPS affects the frequency of VGA
  102. # updates, the duration of time before a key starts to autorepeat, and
  103. # the measurement of BogoMips and other benchmarks.
  104. #
  105. # Examples:
  106. # Machine Mips
  107. # ________________________________________________________________
  108. # 2.1Ghz Athlon XP with Linux 2.6/g++ 3.4 12 to 15 Mips
  109. # 1.6Ghz Intel P4 with Win2000/g++ 3.3 5 to 7 Mips
  110. # 650Mhz Athlon K-7 with Linux 2.4.4/egcs-2.91.66 2 to 2.5 Mips
  111. # 400Mhz Pentium II with Linux 2.0.36/egcs-1.0.3 1 to 1.8 Mips
  112. #=======================================================================
  113. cpu: count=1, ips=10000000, reset_on_triple_fault=1
  114. #=======================================================================
  115. # MEGS
  116. # Set the number of Megabytes of physical memory you want to emulate.
  117. # The default is 32MB, most OS's won't need more than that.
  118. # The maximum amount of memory supported is 2048Mb.
  119. #=======================================================================
  120. #megs: 256
  121. #megs: 128
  122. #megs: 64
  123. megs: 32
  124. #megs: 16
  125. #megs: 8
  126. #=======================================================================
  127. # OPTROMIMAGE[1-4]:
  128. # You may now load up to 4 optional ROM images. Be sure to use a
  129. # read-only area, typically between C8000 and EFFFF. These optional
  130. # ROM images should not overwrite the rombios (located at
  131. # F0000-FFFFF) and the videobios (located at C0000-C7FFF).
  132. # Those ROM images will be initialized by the bios if they contain
  133. # the right signature (0x55AA) and a valid checksum.
  134. # It can also be a convenient way to upload some arbitrary code/data
  135. # in the simulation, that can be retrieved by the boot loader
  136. #=======================================================================
  137. #optromimage1: file=optionalrom.bin, address=0xd0000
  138. #optromimage2: file=optionalrom.bin, address=0xd1000
  139. #optromimage3: file=optionalrom.bin, address=0xd2000
  140. #optromimage4: file=optionalrom.bin, address=0xd3000
  141. optromimage1: file=../../src/bin/pnic.rom, address=0xd0000
  142. #optromimage1: file=../../src/bin/rtl8029.rom, address=0xd0000
  143. #optramimage1: file=/path/file1.img, address=0x0010000
  144. #optramimage2: file=/path/file2.img, address=0x0020000
  145. #optramimage3: file=/path/file3.img, address=0x0030000
  146. #optramimage4: file=/path/file4.img, address=0x0040000
  147. #=======================================================================
  148. # VGAROMIMAGE
  149. # You now need to load a VGA ROM BIOS into C0000.
  150. #=======================================================================
  151. #vgaromimage: file=bios/VGABIOS-elpin-2.40
  152. vgaromimage: file=bochs/bios/VGABIOS-lgpl-latest
  153. #vgaromimage: file=bios/VGABIOS-lgpl-latest-cirrus
  154. #=======================================================================
  155. # VGA:
  156. # Here you can specify the display extension to be used. With the value
  157. # 'none' you can use standard VGA with no extension. Other supported
  158. # values are 'vbe' for Bochs VBE and 'cirrus' for Cirrus SVGA support.
  159. #=======================================================================
  160. #vga: extension=cirrus
  161. #vga: extension=vbe
  162. vga: extension=none
  163. #=======================================================================
  164. # FLOPPYA:
  165. # Point this to pathname of floppy image file or device
  166. # This should be of a bootable floppy(image/device) if you're
  167. # booting from 'a' (or 'floppy').
  168. #
  169. # You can set the initial status of the media to 'ejected' or 'inserted'.
  170. # floppya: 2_88=path, status=ejected (2.88M 3.5" floppy)
  171. # floppya: 1_44=path, status=inserted (1.44M 3.5" floppy)
  172. # floppya: 1_2=path, status=ejected (1.2M 5.25" floppy)
  173. # floppya: 720k=path, status=inserted (720K 3.5" floppy)
  174. # floppya: 360k=path, status=inserted (360K 5.25" floppy)
  175. # floppya: 320k=path, status=inserted (320K 5.25" floppy)
  176. # floppya: 180k=path, status=inserted (180K 5.25" floppy)
  177. # floppya: 160k=path, status=inserted (160K 5.25" floppy)
  178. # floppya: image=path, status=inserted (guess type from image size)
  179. #
  180. # The path should be the name of a disk image file. On Unix, you can use a raw
  181. # device name such as /dev/fd0 on Linux. On win32 platforms, use drive letters
  182. # such as a: or b: as the path. The parameter 'image' works with image files
  183. # only. In that case the size must match one of the supported types.
  184. #=======================================================================
  185. #floppya: 1_44=/dev/fd0, status=inserted
  186. #floppya: image=../1.44, status=inserted
  187. #floppya: 1_44=/dev/fd0H1440, status=inserted
  188. #floppya: 1_2=../1_2, status=inserted
  189. #floppya: 1_44=a:, status=inserted
  190. #floppya: 1_44=a.img, status=inserted
  191. #floppya: 1_44=/dev/rfd0a, status=inserted
  192. floppya: 1_44=../../src/bin/pnic.dsk, status=inserted
  193. #=======================================================================
  194. # FLOPPYB:
  195. # See FLOPPYA above for syntax
  196. #=======================================================================
  197. #floppyb: 1_44=b:, status=inserted
  198. floppyb: 1_44=b.img, status=inserted
  199. #=======================================================================
  200. # ATA0, ATA1, ATA2, ATA3
  201. # ATA controller for hard disks and cdroms
  202. #
  203. # ata[0-3]: enabled=[0|1], ioaddr1=addr, ioaddr2=addr, irq=number
  204. #
  205. # These options enables up to 4 ata channels. For each channel
  206. # the two base io addresses and the irq must be specified.
  207. #
  208. # ata0 and ata1 are enabled by default with the values shown below
  209. #
  210. # Examples:
  211. # ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
  212. # ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
  213. # ata2: enabled=1, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
  214. # ata3: enabled=1, ioaddr1=0x168, ioaddr2=0x360, irq=9
  215. #=======================================================================
  216. ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
  217. ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
  218. ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
  219. ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x360, irq=9
  220. #=======================================================================
  221. # ATA[0-3]-MASTER, ATA[0-3]-SLAVE
  222. #
  223. # This defines the type and characteristics of all attached ata devices:
  224. # type= type of attached device [disk|cdrom]
  225. # mode= only valid for disks [flat|concat|external|dll|sparse|vmware3]
  226. # mode= only valid for disks [undoable|growing|volatile]
  227. # path= path of the image
  228. # cylinders= only valid for disks
  229. # heads= only valid for disks
  230. # spt= only valid for disks
  231. # status= only valid for cdroms [inserted|ejected]
  232. # biosdetect= type of biosdetection [none|auto], only for disks on ata0 [cmos]
  233. # translation=type of translation of the bios, only for disks [none|lba|large|rechs|auto]
  234. # model= string returned by identify device command
  235. # journal= optional filename of the redolog for undoable and volatile disks
  236. #
  237. # Point this at a hard disk image file, cdrom iso file, or physical cdrom
  238. # device. To create a hard disk image, try running bximage. It will help you
  239. # choose the size and then suggest a line that works with it.
  240. #
  241. # In UNIX it may be possible to use a raw device as a Bochs hard disk,
  242. # but WE DON'T RECOMMEND IT. In Windows there is no easy way.
  243. #
  244. # In windows, the drive letter + colon notation should be used for cdroms.
  245. # Depending on versions of windows and drivers, you may only be able to
  246. # access the "first" cdrom in the system. On MacOSX, use path="drive"
  247. # to access the physical drive.
  248. #
  249. # The path is always mandatory. For flat hard disk images created with
  250. # bximage geometry autodetection can be used (cylinders=0 -> cylinders are
  251. # calculated using heads=16 and spt=63). For other hard disk images and modes
  252. # the cylinders, heads, and spt are mandatory.
  253. #
  254. # Default values are:
  255. # mode=flat, biosdetect=auto, translation=auto, model="Generic 1234"
  256. #
  257. # The biosdetect option has currently no effect on the bios
  258. #
  259. # Examples:
  260. # ata0-master: type=disk, mode=flat, path=10M.sample, cylinders=306, heads=4, spt=17
  261. # ata0-slave: type=disk, mode=flat, path=20M.sample, cylinders=615, heads=4, spt=17
  262. # ata1-master: type=disk, mode=flat, path=30M.sample, cylinders=615, heads=6, spt=17
  263. # ata1-slave: type=disk, mode=flat, path=46M.sample, cylinders=940, heads=6, spt=17
  264. # ata2-master: type=disk, mode=flat, path=62M.sample, cylinders=940, heads=8, spt=17
  265. # ata2-slave: type=disk, mode=flat, path=112M.sample, cylinders=900, heads=15, spt=17
  266. # ata3-master: type=disk, mode=flat, path=483M.sample, cylinders=1024, heads=15, spt=63
  267. # ata3-slave: type=cdrom, path=iso.sample, status=inserted
  268. #=======================================================================
  269. #ata0-master: type=disk, mode=flat, path="30M.sample", cylinders=615, heads=6, spt=17
  270. #ata0-slave: type=cdrom, path=D:, status=inserted
  271. #ata0-slave: type=cdrom, path=/dev/cdrom, status=inserted
  272. #ata0-slave: type=cdrom, path="drive", status=inserted
  273. #ata0-slave: type=cdrom, path=/dev/rcd0d, status=inserted
  274. #=======================================================================
  275. # BOOT:
  276. # This defines the boot sequence. Now you can specify up to 3 boot drives.
  277. # You can either boot from 'floppy', 'disk' or 'cdrom'
  278. # legacy 'a' and 'c' are also supported
  279. # Examples:
  280. # boot: floppy
  281. # boot: disk
  282. # boot: cdrom
  283. # boot: c
  284. # boot: a
  285. # boot: cdrom, floppy, disk
  286. #=======================================================================
  287. #boot: floppy
  288. #boot: disk
  289. #=======================================================================
  290. # CLOCK:
  291. # This defines the parameters of the clock inside Bochs:
  292. #
  293. # SYNC:
  294. # TO BE COMPLETED (see Greg explanation in feature request #536329)
  295. #
  296. # TIME0:
  297. # Specifies the start (boot) time of the virtual machine. Use a time
  298. # value as returned by the time(2) system call. If no time0 value is
  299. # set or if time0 equal to 1 (special case) or if time0 equal 'local',
  300. # the simulation will be started at the current local host time.
  301. # If time0 equal to 2 (special case) or if time0 equal 'utc',
  302. # the simulation will be started at the current utc time.
  303. #
  304. # Syntax:
  305. # clock: sync=[none|slowdown|realtime|both], time0=[timeValue|local|utc]
  306. #
  307. # Example:
  308. # clock: sync=none, time0=local # Now (localtime)
  309. # clock: sync=slowdown, time0=315529200 # Tue Jan 1 00:00:00 1980
  310. # clock: sync=none, time0=631148400 # Mon Jan 1 00:00:00 1990
  311. # clock: sync=realtime, time0=938581955 # Wed Sep 29 07:12:35 1999
  312. # clock: sync=realtime, time0=946681200 # Sat Jan 1 00:00:00 2000
  313. # clock: sync=none, time0=1 # Now (localtime)
  314. # clock: sync=none, time0=utc # Now (utc/gmt)
  315. #
  316. # Default value are sync=none, time0=local
  317. #=======================================================================
  318. #clock: sync=none, time0=local
  319. #=======================================================================
  320. # FLOPPY_BOOTSIG_CHECK: disabled=[0|1]
  321. # Enables or disables the 0xaa55 signature check on boot floppies
  322. # Defaults to disabled=0
  323. # Examples:
  324. # floppy_bootsig_check: disabled=0
  325. # floppy_bootsig_check: disabled=1
  326. #=======================================================================
  327. #floppy_bootsig_check: disabled=1
  328. floppy_bootsig_check: disabled=0
  329. #=======================================================================
  330. # LOG:
  331. # Give the path of the log file you'd like Bochs debug and misc. verbiage
  332. # to be written to. If you don't use this option or set the filename to
  333. # '-' the output is written to the console. If you really don't want it,
  334. # make it "/dev/null" (Unix) or "nul" (win32). :^(
  335. #
  336. # Examples:
  337. # log: ./bochs.out
  338. # log: /dev/tty
  339. #=======================================================================
  340. #log: /dev/null
  341. log: bochsout.txt
  342. #=======================================================================
  343. # LOGPREFIX:
  344. # This handles the format of the string prepended to each log line.
  345. # You may use those special tokens :
  346. # %t : 11 decimal digits timer tick
  347. # %i : 8 hexadecimal digits of cpu current eip (ignored in SMP configuration)
  348. # %e : 1 character event type ('i'nfo, 'd'ebug, 'p'anic, 'e'rror)
  349. # %d : 5 characters string of the device, between brackets
  350. #
  351. # Default : %t%e%d
  352. # Examples:
  353. # logprefix: %t-%e-@%i-%d
  354. # logprefix: %i%e%d
  355. #=======================================================================
  356. #logprefix: %t%e%d
  357. #=======================================================================
  358. # LOG CONTROLS
  359. #
  360. # Bochs now has four severity levels for event logging.
  361. # panic: cannot proceed. If you choose to continue after a panic,
  362. # don't be surprised if you get strange behavior or crashes.
  363. # error: something went wrong, but it is probably safe to continue the
  364. # simulation.
  365. # info: interesting or useful messages.
  366. # debug: messages useful only when debugging the code. This may
  367. # spit out thousands per second.
  368. #
  369. # For events of each level, you can choose to crash, report, or ignore.
  370. # TODO: allow choice based on the facility: e.g. crash on panics from
  371. # everything except the cdrom, and only report those.
  372. #
  373. # If you are experiencing many panics, it can be helpful to change
  374. # the panic action to report instead of fatal. However, be aware
  375. # that anything executed after a panic is uncharted territory and can
  376. # cause bochs to become unstable. The panic is a "graceful exit," so
  377. # if you disable it you may get a spectacular disaster instead.
  378. #=======================================================================
  379. panic: action=ask
  380. error: action=report
  381. info: action=report
  382. debug: action=ignore
  383. #pass: action=fatal
  384. #=======================================================================
  385. # DEBUGGER_LOG:
  386. # Give the path of the log file you'd like Bochs to log debugger output.
  387. # If you really don't want it, make it /dev/null or '-'. :^(
  388. #
  389. # Examples:
  390. # debugger_log: ./debugger.out
  391. #=======================================================================
  392. #debugger_log: /dev/null
  393. #debugger_log: debugger.out
  394. debugger_log: -
  395. #=======================================================================
  396. # COM1, COM2, COM3, COM4:
  397. # This defines a serial port (UART type 16550A). In the 'term' you can specify
  398. # a device to use as com1. This can be a real serial line, or a pty. To use
  399. # a pty (under X/Unix), create two windows (xterms, usually). One of them will
  400. # run bochs, and the other will act as com1. Find out the tty the com1
  401. # window using the `tty' command, and use that as the `dev' parameter.
  402. # Then do `sleep 1000000' in the com1 window to keep the shell from
  403. # messing with things, and run bochs in the other window. Serial I/O to
  404. # com1 (port 0x3f8) will all go to the other window.
  405. # Other serial modes are 'null' (no input/output), 'file' (output to a file
  406. # specified as the 'dev' parameter), 'raw' (use the real serial port - under
  407. # construction for win32), 'mouse' (standard serial mouse - requires
  408. # mouse option setting 'type=serial' or 'type=serial_wheel') and 'socket'
  409. # (connect a networking socket).
  410. #
  411. # Examples:
  412. # com1: enabled=1, mode=null
  413. # com1: enabled=1, mode=mouse
  414. # com2: enabled=1, mode=file, dev=serial.out
  415. # com3: enabled=1, mode=raw, dev=com1
  416. # com3: enabled=1, mode=socket, dev=localhost:8888
  417. #=======================================================================
  418. #com1: enabled=1, mode=term, dev=/dev/ttyp9
  419. #=======================================================================
  420. # PARPORT1, PARPORT2:
  421. # This defines a parallel (printer) port. When turned on and an output file is
  422. # defined the emulated printer port sends characters printed by the guest OS
  423. # into the output file. On some platforms a device filename can be used to
  424. # send the data to the real parallel port (e.g. "/dev/lp0" on Linux, "lpt1" on
  425. # win32 platforms).
  426. #
  427. # Examples:
  428. # parport1: enabled=1, file="parport.out"
  429. # parport2: enabled=1, file="/dev/lp0"
  430. # parport1: enabled=0
  431. #=======================================================================
  432. parport1: enabled=1, file="parport.out"
  433. #=======================================================================
  434. # SB16:
  435. # This defines the SB16 sound emulation. It can have several of the
  436. # following properties.
  437. # All properties are in the format sb16: property=value
  438. # midi: The filename is where the midi data is sent. This can be a
  439. # device or just a file if you want to record the midi data.
  440. # midimode:
  441. # 0=no data
  442. # 1=output to device (system dependent. midi denotes the device driver)
  443. # 2=SMF file output, including headers
  444. # 3=output the midi data stream to the file (no midi headers and no
  445. # delta times, just command and data bytes)
  446. # wave: This is the device/file where wave output is stored
  447. # wavemode:
  448. # 0=no data
  449. # 1=output to device (system dependent. wave denotes the device driver)
  450. # 2=VOC file output, incl. headers
  451. # 3=output the raw wave stream to the file
  452. # log: The file to write the sb16 emulator messages to.
  453. # loglevel:
  454. # 0=no log
  455. # 1=resource changes, midi program and bank changes
  456. # 2=severe errors
  457. # 3=all errors
  458. # 4=all errors plus all port accesses
  459. # 5=all errors and port accesses plus a lot of extra info
  460. # dmatimer:
  461. # microseconds per second for a DMA cycle. Make it smaller to fix
  462. # non-continuous sound. 750000 is usually a good value. This needs a
  463. # reasonably correct setting for the IPS parameter of the CPU option.
  464. #
  465. # For an example look at the next line:
  466. #=======================================================================
  467. #sb16: midimode=1, midi=/dev/midi00, wavemode=1, wave=/dev/dsp, loglevel=2, log=sb16.log, dmatimer=600000
  468. #=======================================================================
  469. # VGA_UPDATE_INTERVAL:
  470. # Video memory is scanned for updates and screen updated every so many
  471. # virtual seconds. The default is 40000, about 25Hz. Keep in mind that
  472. # you must tweak the 'cpu: ips=N' directive to be as close to the number
  473. # of emulated instructions-per-second your workstation can do, for this
  474. # to be accurate.
  475. #
  476. # Examples:
  477. # vga_update_interval: 250000
  478. #=======================================================================
  479. vga_update_interval: 300000
  480. # using for Winstone '98 tests
  481. #vga_update_interval: 100000
  482. #=======================================================================
  483. # KEYBOARD_SERIAL_DELAY:
  484. # Approximate time in microseconds that it takes one character to
  485. # be transfered from the keyboard to controller over the serial path.
  486. # Examples:
  487. # keyboard_serial_delay: 200
  488. #=======================================================================
  489. keyboard_serial_delay: 250
  490. #=======================================================================
  491. # KEYBOARD_PASTE_DELAY:
  492. # Approximate time in microseconds between attempts to paste
  493. # characters to the keyboard controller. This leaves time for the
  494. # guest os to deal with the flow of characters. The ideal setting
  495. # depends on how your operating system processes characters. The
  496. # default of 100000 usec (.1 seconds) was chosen because it works
  497. # consistently in Windows.
  498. #
  499. # If your OS is losing characters during a paste, increase the paste
  500. # delay until it stops losing characters.
  501. #
  502. # Examples:
  503. # keyboard_paste_delay: 100000
  504. #=======================================================================
  505. keyboard_paste_delay: 100000
  506. #=======================================================================
  507. # MOUSE:
  508. # This option prevents Bochs from creating mouse "events" unless a mouse
  509. # is enabled. The hardware emulation itself is not disabled by this.
  510. # You can turn the mouse on by setting enabled to 1, or turn it off by
  511. # setting enabled to 0. Unless you have a particular reason for enabling
  512. # the mouse by default, it is recommended that you leave it off.
  513. # You can also toggle the mouse usage at runtime (control key + middle
  514. # mouse button on X11, SDL, wxWidgets and Win32).
  515. # With the mouse type option you can select the type of mouse to emulate.
  516. # The default value is 'ps2'. The other choices are 'imps2' (wheel mouse
  517. # on PS/2), 'serial', 'serial_wheel' (one com port requires setting
  518. # 'mode=mouse') and 'usb' (3-button mouse - one of the USB ports must be
  519. # connected with the 'mouse' device - requires PCI and USB support).
  520. #
  521. # Examples:
  522. # mouse: enabled=1
  523. # mouse: enabled=1, type=imps2
  524. # mouse: enabled=1, type=serial
  525. # mouse: enabled=0
  526. #=======================================================================
  527. mouse: enabled=0
  528. #=======================================================================
  529. # private_colormap: Request that the GUI create and use it's own
  530. # non-shared colormap. This colormap will be used
  531. # when in the bochs window. If not enabled, a
  532. # shared colormap scheme may be used. Not implemented
  533. # on all GUI's.
  534. #
  535. # Examples:
  536. # private_colormap: enabled=1
  537. # private_colormap: enabled=0
  538. #=======================================================================
  539. private_colormap: enabled=0
  540. #=======================================================================
  541. # fullscreen: ONLY IMPLEMENTED ON AMIGA
  542. # Request that Bochs occupy the entire screen instead of a
  543. # window.
  544. #
  545. # Examples:
  546. # fullscreen: enabled=0
  547. # fullscreen: enabled=1
  548. #=======================================================================
  549. #fullscreen: enabled=0
  550. #screenmode: name="sample"
  551. #=======================================================================
  552. # ne2k: NE2000 compatible ethernet adapter
  553. #
  554. # Examples:
  555. # ne2k: ioaddr=IOADDR, irq=IRQ, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE, script=SCRIPT
  556. #
  557. # ioaddr, irq: You probably won't need to change ioaddr and irq, unless there
  558. # are IRQ conflicts.
  559. #
  560. # mac: The MAC address MUST NOT match the address of any machine on the net.
  561. # Also, the first byte must be an even number (bit 0 set means a multicast
  562. # address), and you cannot use ff:ff:ff:ff:ff:ff because that's the broadcast
  563. # address. For the ethertap module, you must use fe:fd:00:00:00:01. There may
  564. # be other restrictions too. To be safe, just use the b0:c4... address.
  565. #
  566. # ethdev: The ethdev value is the name of the network interface on your host
  567. # platform. On UNIX machines, you can get the name by running ifconfig. On
  568. # Windows machines, you must run niclist to get the name of the ethdev.
  569. # Niclist source code is in misc/niclist.c and it is included in Windows
  570. # binary releases.
  571. #
  572. # script: The script value is optional, and is the name of a script that
  573. # is executed after bochs initialize the network interface. You can use
  574. # this script to configure this network interface, or enable masquerading.
  575. # This is mainly useful for the tun/tap devices that only exist during
  576. # Bochs execution. The network interface name is supplied to the script
  577. # as first parameter
  578. #
  579. # If you don't want to make connections to any physical networks,
  580. # you can use the following 'ethmod's to simulate a virtual network.
  581. # null: All packets are discarded, but logged to a few files.
  582. # arpback: ARP is simulated. Disabled by default.
  583. # vde: Virtual Distributed Ethernet
  584. # vnet: ARP, ICMP-echo(ping), DHCP and read/write TFTP are simulated.
  585. # The virtual host uses 192.168.10.1.
  586. # DHCP assigns 192.168.10.2 to the guest.
  587. # TFTP uses the ethdev value for the root directory and doesn't
  588. # overwrite files.
  589. #
  590. #=======================================================================
  591. # ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=fbsd, ethdev=en0 #macosx
  592. # ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:00, ethmod=fbsd, ethdev=xl0
  593. # ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:00, ethmod=linux, ethdev=eth0
  594. # ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=win32, ethdev=MYCARD
  595. # ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tap, ethdev=tap0
  596. # ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun0, script=./tunconfig
  597. # ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=null, ethdev=eth0
  598. # ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=vde, ethdev="/tmp/vde.ctl"
  599. # ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=vnet, ethdev="c:/temp"
  600. pnic: mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun:tap0
  601. #ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun:tap0
  602. #=======================================================================
  603. # KEYBOARD_MAPPING:
  604. # This enables a remap of a physical localized keyboard to a
  605. # virtualized us keyboard, as the PC architecture expects.
  606. # If enabled, the keymap file must be specified.
  607. #
  608. # Examples:
  609. # keyboard_mapping: enabled=1, map=gui/keymaps/x11-pc-de.map
  610. #=======================================================================
  611. keyboard_mapping: enabled=0, map=
  612. #=======================================================================
  613. # KEYBOARD_TYPE:
  614. # Type of keyboard return by a "identify keyboard" command to the
  615. # keyboard controler. It must be one of "xt", "at" or "mf".
  616. # Defaults to "mf". It should be ok for almost everybody. A known
  617. # exception is french macs, that do have a "at"-like keyboard.
  618. #
  619. # Examples:
  620. # keyboard_type: mf
  621. #=======================================================================
  622. #keyboard_type: mf
  623. #=======================================================================
  624. # USER_SHORTCUT:
  625. # This defines the keyboard shortcut to be sent when you press the "user"
  626. # button in the headerbar. The shortcut string is a combination of maximum
  627. # 3 key names (listed below) separated with a '-' character. The old-style
  628. # syntax (without the '-') still works for the key combinations supported
  629. # in Bochs 2.2.1.
  630. # Valid key names:
  631. # "alt", "bksl", "bksp", "ctrl", "del", "down", "end", "enter", "esc",
  632. # "f1", ... "f12", "home", "ins", "left", "menu", "minus", "pgdwn", "pgup",
  633. # "plus", "right", "shift", "space", "tab", "up", and "win".
  634. #
  635. # Example:
  636. # user_shortcut: keys=ctrl-alt-del
  637. #=======================================================================
  638. user_shortcut: keys=ctrl-alt-del
  639. #=======================================================================
  640. # I440FXSUPPORT:
  641. # This option controls the presence of the i440FX PCI chipset. You can
  642. # also specify the devices connected to PCI slots. Up to 5 slots are
  643. # available now. These devices are currently supported: ne2k, pcivga,
  644. # pcidev and pcipnic. If Bochs is compiled with Cirrus SVGA support
  645. # you'll have the additional choice 'cirrus'.
  646. #
  647. # Example:
  648. # i440fxsupport: enabled=1, slot1=pcivga, slot2=ne2k
  649. #=======================================================================
  650. i440fxsupport: enabled=1, slot1=pcipnic
  651. #i440fxsupport: enabled=1, slot1=ne2k
  652. #=======================================================================
  653. # USB1:
  654. # This option controls the presence of the USB root hub which is a part
  655. # of the i440FX PCI chipset. With the portX option you can connect devices
  656. # to the hub (currently supported: 'mouse' and 'keypad'). If you connect
  657. # the mouse to one of the ports and use the mouse option 'type=usb' you'll
  658. # have a 3-button USB mouse.
  659. #
  660. # Example:
  661. # usb1: enabled=1, port1=mouse, port2=keypad
  662. #=======================================================================
  663. #usb1: enabled=1
  664. #=======================================================================
  665. # CMOSIMAGE:
  666. # This defines image file that can be loaded into the CMOS RAM at startup.
  667. # The rtc_init parameter controls whether initialize the RTC with values stored
  668. # in the image. By default the time0 argument given to the clock option is used.
  669. # With 'rtc_init=image' the image is the source for the initial time.
  670. #
  671. # Example:
  672. # cmosimage: file=cmos.img, rtc_init=image
  673. #=======================================================================
  674. #cmosimage: file=cmos.img, rtc_init=time0
  675. #=======================================================================
  676. # other stuff
  677. #=======================================================================
  678. magic_break: enabled=1
  679. #load32bitOSImage: os=nullkernel, path=../kernel.img, iolog=../vga_io.log
  680. #load32bitOSImage: os=linux, path=../linux.img, iolog=../vga_io.log, initrd=../initrd.img
  681. #text_snapshot_check: enable
  682. #-------------------------
  683. # PCI host device mapping
  684. #-------------------------
  685. #pcidev: vendor=0x1234, device=0x5678
  686. #=======================================================================
  687. # GDBSTUB:
  688. # Enable GDB stub. See user documentation for details.
  689. # Default value is enabled=0.
  690. #=======================================================================
  691. #gdbstub: enabled=0, port=1234, text_base=0, data_base=0, bss_base=0
  692. #=======================================================================
  693. # IPS:
  694. # The IPS directive is DEPRECATED. Use the parameter IPS of the CPU
  695. # directive instead.
  696. #=======================================================================
  697. #ips: 10000000
  698. #=======================================================================
  699. # for Macintosh, use the style of pathnames in the following
  700. # examples.
  701. #
  702. # vgaromimage: :bios:VGABIOS-elpin-2.40
  703. # romimage: file=:bios:BIOS-bochs-latest, address=0xf0000
  704. # floppya: 1_44=[fd:], status=inserted
  705. #=======================================================================