diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-07 20:39:39 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-07 20:39:39 +0000 |
commit | b2097003ecad43a34851e57969eadf74181d0080 (patch) | |
tree | c229dde888def014a1f161ac7fb2737a1cd54347 /hw/mips_jazz.c | |
parent | 4b32e1688000d306a676b0a5b89629b9d8da1ed7 (diff) | |
download | qemu-b2097003ecad43a34851e57969eadf74181d0080.zip qemu-b2097003ecad43a34851e57969eadf74181d0080.tar.gz qemu-b2097003ecad43a34851e57969eadf74181d0080.tar.bz2 |
machine struct - specify max_cpus at the per machine level (Jes Sorensen)
Introduce a max_cpus per-machine variable, allowing individual boards
to limit it's number of CPUs. Check requested number of CPUs in setup
code and exit if it exceeds the supported number for the machine.
This also renders the static MAX_CPUS check obsolete, so remove this
from vl.c.
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5443 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips_jazz.c')
-rw-r--r-- | hw/mips_jazz.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index b332a45..68e63ff 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@ -278,6 +278,7 @@ QEMUMachine mips_magnum_machine = { .init = mips_magnum_init, .ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE, .nodisk_ok = 1, + .max_cpus = 1, }; QEMUMachine mips_pica61_machine = { @@ -286,4 +287,5 @@ QEMUMachine mips_pica61_machine = { .init = mips_pica61_init, .ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE, .nodisk_ok = 1, + .max_cpus = 1, }; |