From aa04797148ee95914a49888866c5d730c32e6cd2 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Sun, 13 Nov 2005 14:26:02 +0000 Subject: [PATCH] - i440fxsupport is now enabled by default if compiled in - missing reset of PCI slot options added - parsing of i440fxsupport config line rewritten - vga_update_interval default value changed to 40000 and docs updated - some more documentation updated including default values for some bochsrc options --- bochs/.bochsrc | 8 ++--- bochs/config.cc | 64 ++++++++++++++------------------- bochs/doc/docbook/user/user.dbk | 38 ++++++++++---------- bochs/doc/man/bochsrc.5 | 22 ++++++------ 4 files changed, 63 insertions(+), 69 deletions(-) diff --git a/bochs/.bochsrc b/bochs/.bochsrc index ed3fe148f..3870271ba 100644 --- a/bochs/.bochsrc +++ b/bochs/.bochsrc @@ -475,10 +475,10 @@ parport1: enabled=1, file="parport.out" #======================================================================= # VGA_UPDATE_INTERVAL: # Video memory is scanned for updates and screen updated every so many -# virtual seconds. The default is 300000, about 3Hz. This is generally -# plenty. Keep in mind that you must tweak the 'ips:' directive -# to be as close to the number of emulated instructions-per-second -# your workstation can do, for this to be accurate. +# virtual seconds. The default is 40000, about 25Hz. Keep in mind that +# you must tweak the 'ips:' directive to be as close to the number of +# emulated instructions-per-second your workstation can do, for this +# to be accurate. # # Examples: # vga_update_interval: 250000 diff --git a/bochs/config.cc b/bochs/config.cc index 05bd82992..038f69c77 100755 --- a/bochs/config.cc +++ b/bochs/config.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: config.cc,v 1.58 2005-11-12 10:38:51 vruppert Exp $ +// $Id: config.cc,v 1.59 2005-11-13 14:26:02 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002 MandrakeSoft S.A. @@ -1095,7 +1095,7 @@ void bx_init_options () bx_options.Oi440FXSupport = new bx_param_bool_c (BXP_I440FX_SUPPORT, "Enable i440FX PCI Support", "Controls whether to emulate the i440FX PCI chipset", - 0); + BX_SUPPORT_PCI); *pci_conf_ptr++ = bx_options.Oi440FXSupport; // pci slots for (i=0; iset_handler (bx_param_handler); bx_options.Ovga_update_interval->set_runtime_param (1); bx_options.Ovga_update_interval->set_ask_format ("Type a new value for VGA update interval: [%d] "); @@ -1834,10 +1834,6 @@ void bx_reset_options () bx_options.pnic.Oethdev->reset(); bx_options.pnic.Oscript->reset(); - // pcidev - bx_options.pcidev.Ovendor->reset(); - bx_options.pcidev.Odevice->reset(); - // SB16 bx_options.sb16.Oenabled->reset(); bx_options.sb16.Omidifile->reset(); @@ -1871,8 +1867,18 @@ void bx_reset_options () bx_options.clock.Otime0->reset(); bx_options.clock.Osync->reset(); - // other + // PCI bx_options.Oi440FXSupport->reset(); + for (i=0; ireset(); + bx_options.pcislot[i].Odevname->reset(); + } + + // pcidev + bx_options.pcidev.Ovendor->reset(); + bx_options.pcidev.Odevice->reset(); + + // other bx_options.cmosimage.Oenabled->reset(); bx_options.cmosimage.Opath->reset(); bx_options.cmosimage.Ortc_init->reset(); @@ -2917,38 +2923,22 @@ parse_line_formatted(char *context, int num_params, char *params[]) } } } else if (!strcmp(params[0], "i440fxsupport")) { - if (num_params < 2) { - PARSE_ERR(("%s: i440FXSupport directive malformed.", context)); - } - if (strncmp(params[1], "enabled=", 8)) { - PARSE_ERR(("%s: i440FXSupport directive malformed.", context)); - } - if (params[1][8] == '0') - bx_options.Oi440FXSupport->set (0); - else if (params[1][8] == '1') - bx_options.Oi440FXSupport->set (1); - else { - PARSE_ERR(("%s: i440FXSupport directive malformed.", context)); - } - if (num_params > 2) { - for (i=2; i= 0) && (slot < 5)) { + bx_options.pcislot[slot].Odevname->set (strdup(¶ms[i][6])); + bx_options.pcislot[slot].Oused->set (strlen(params[i]) > 6); + } else { + BX_ERROR(("%s: unknown pci slot number ignored.", context)); } + } else { + PARSE_ERR(("%s: i440fxsupport: unknown parameter '%s'.", context, params[i])); } } - else if (!strcmp(params[0], "pcidev")) { + } else if (!strcmp(params[0], "pcidev")) { if (num_params != 3) { PARSE_ERR(("%s: pcidev directive malformed.", context)); } diff --git a/bochs/doc/docbook/user/user.dbk b/bochs/doc/docbook/user/user.dbk index 10d167f97..417e751ca 100644 --- a/bochs/doc/docbook/user/user.dbk +++ b/bochs/doc/docbook/user/user.dbk @@ -1,7 +1,7 @@