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:
parent
9ddf44f35a
commit
de527e2dde
@ -77,8 +77,9 @@ romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xf0000
|
|||||||
|
|
||||||
#=======================================================================
|
#=======================================================================
|
||||||
# MEGS
|
# MEGS
|
||||||
# set this to the default number of Megabytes of memory you want
|
# Set the number of Megabytes of physical memory you want to emulate.
|
||||||
# to emulate. The default is 32MB, most OS's won't need more than that.
|
# The default is 32MB, most OS's won't need more than that.
|
||||||
|
# The maximum amount of memory supported is 2048Mb.
|
||||||
#=======================================================================
|
#=======================================================================
|
||||||
#megs: 256
|
#megs: 256
|
||||||
#megs: 128
|
#megs: 128
|
||||||
|
@ -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
|
emulation of the Intel x86 CPU, common I/O devices, and a custom
|
||||||
BIOS. Currently, Bochs can be compiled to emulate a 386, 486,
|
BIOS. Currently, Bochs can be compiled to emulate a 386, 486,
|
||||||
Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE,
|
Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE,
|
||||||
SSE2 and 3DNow instructions. Bochs is capable of running most
|
SSE2 and 3DNow! instructions. Bochs is capable of running most
|
||||||
Operating Systems inside the emulation including Linux, Windows 95,
|
Operating Systems inside the emulation including Linux, DOS,
|
||||||
DOS, and Windows NT 4.
|
Windows 95/98 and Windows NT/2000.
|
||||||
Bochs was written by Kevin Lawton and is currently maintained by
|
Bochs was written by Kevin Lawton and is currently maintained by
|
||||||
the Bochs project at "http://bochs.sourceforge.net".
|
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
|
complete x86 PC emulation, including the x86 processor, hardware
|
||||||
devices, and memory. This allows you to run OS's and software within
|
devices, and memory. This allows you to run OS's and software within
|
||||||
the emulator on your workstation, much like you have a machine
|
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.
|
applications on a Solaris machine with X11, for example.
|
||||||
|
|
||||||
Bochs is distributed under the GNU LGPL. See COPYING for details.
|
Bochs is distributed under the GNU LGPL. See COPYING for details.
|
||||||
|
@ -41,8 +41,7 @@ Redhat Linux 6.2 with 2.2.16 kernel.
|
|||||||
[__]
|
[__]
|
||||||
|
|
||||||
What version of bochs are you using?
|
What version of bochs are you using?
|
||||||
[ ] compiled from version 1.4.1
|
[ ] compiled from version 2.1.1
|
||||||
[ ] compiled from version 2.0
|
|
||||||
[ ] compiled from version [_____]
|
[ ] compiled from version [_____]
|
||||||
[ ] I compiled it from the CVS sources from date: [__]
|
[ ] I compiled it from the CVS sources from date: [__]
|
||||||
[ ] other source distribution from URL: [__]
|
[ ] other source distribution from URL: [__]
|
||||||
|
@ -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.
|
// 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,
|
bx_options.memory.Osize = new bx_param_num_c (BXP_MEM_SIZE,
|
||||||
"megs",
|
"megs",
|
||||||
"Amount of RAM in megabytes",
|
"Amount of RAM in megabytes",
|
||||||
1, BX_MAX_BIT32U,
|
1, 2048,
|
||||||
BX_DEFAULT_MEM_MEGS);
|
BX_DEFAULT_MEM_MEGS);
|
||||||
bx_options.memory.Osize->set_ask_format ("Enter memory size (MB): [%d] ");
|
bx_options.memory.Osize->set_ask_format ("Enter memory size (MB): [%d] ");
|
||||||
#if BX_WITH_WX
|
#if BX_WITH_WX
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
// 'megs:' directive in the '.bochsrc' file overrides this,
|
// 'megs:' directive in the '.bochsrc' file overrides this,
|
||||||
// allowing per-run settings.
|
// allowing per-run settings.
|
||||||
|
|
||||||
#define BX_DEFAULT_MEM_MEGS 4
|
#define BX_DEFAULT_MEM_MEGS 32
|
||||||
|
|
||||||
|
|
||||||
// CPU level emulation. Default level is set in
|
// CPU level emulation. Default level is set in
|
||||||
|
Loading…
Reference in New Issue
Block a user