Do not allow to allocate more than 2048Mb of emulated memory.

Anyway in most of systems it fails to allocated even 1024Mb and allocating more than 4096Mb causes overlap and unpredicted behaviour.
This commit is contained in:
Stanislav Shwartsman 2005-03-06 21:23:38 +00:00
parent 9ddf44f35a
commit de527e2dde
5 changed files with 11 additions and 11 deletions

View File

@ -77,8 +77,9 @@ romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xf0000
#=======================================================================
# MEGS
# set this to the default number of Megabytes of memory you want
# to emulate. The default is 32MB, most OS's won't need more than that.
# Set the number of Megabytes of physical memory you want to emulate.
# The default is 32MB, most OS's won't need more than that.
# The maximum amount of memory supported is 2048Mb.
#=======================================================================
#megs: 256
#megs: 128

View File

@ -9,9 +9,9 @@ written in C++, that runs on most popular platforms. It includes
emulation of the Intel x86 CPU, common I/O devices, and a custom
BIOS. Currently, Bochs can be compiled to emulate a 386, 486,
Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE,
SSE2 and 3DNow instructions. Bochs is capable of running most
Operating Systems inside the emulation including Linux, Windows 95,
DOS, and Windows NT 4.
SSE2 and 3DNow! instructions. Bochs is capable of running most
Operating Systems inside the emulation including Linux, DOS,
Windows 95/98 and Windows NT/2000.
Bochs was written by Kevin Lawton and is currently maintained by
the Bochs project at "http://bochs.sourceforge.net".
@ -20,7 +20,7 @@ still in development. The 'typical' use of bochs is to provide
complete x86 PC emulation, including the x86 processor, hardware
devices, and memory. This allows you to run OS's and software within
the emulator on your workstation, much like you have a machine
inside of a machine. Bochs will allow you to run Win '95
inside of a machine. Bochs will allow you to run Windows
applications on a Solaris machine with X11, for example.
Bochs is distributed under the GNU LGPL. See COPYING for details.

View File

@ -41,8 +41,7 @@ Redhat Linux 6.2 with 2.2.16 kernel.
[__]
What version of bochs are you using?
[ ] compiled from version 1.4.1
[ ] compiled from version 2.0
[ ] compiled from version 2.1.1
[ ] compiled from version [_____]
[ ] I compiled it from the CVS sources from date: [__]
[ ] other source distribution from URL: [__]

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: config.cc,v 1.30 2005-02-01 19:16:19 vruppert Exp $
// $Id: config.cc,v 1.31 2005-03-06 21:23:38 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -818,7 +818,7 @@ void bx_init_options ()
bx_options.memory.Osize = new bx_param_num_c (BXP_MEM_SIZE,
"megs",
"Amount of RAM in megabytes",
1, BX_MAX_BIT32U,
1, 2048,
BX_DEFAULT_MEM_MEGS);
bx_options.memory.Osize->set_ask_format ("Enter memory size (MB): [%d] ");
#if BX_WITH_WX

View File

@ -157,7 +157,7 @@
// 'megs:' directive in the '.bochsrc' file overrides this,
// allowing per-run settings.
#define BX_DEFAULT_MEM_MEGS 4
#define BX_DEFAULT_MEM_MEGS 32
// CPU level emulation. Default level is set in