summaryrefslogtreecommitdiffstats
path: root/hw/versatilepb.c
diff options
context:
space:
mode:
authoraliguori2008-10-07 22:39:39 +0200
committeraliguori2008-10-07 22:39:39 +0200
commitb2097003ecad43a34851e57969eadf74181d0080 (patch)
treec229dde888def014a1f161ac7fb2737a1cd54347 /hw/versatilepb.c
parentmachine struct - use C99 initializers (Jes Sorensen) (diff)
downloadqemu-b2097003ecad43a34851e57969eadf74181d0080.tar.gz
qemu-b2097003ecad43a34851e57969eadf74181d0080.tar.xz
qemu-b2097003ecad43a34851e57969eadf74181d0080.zip
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/versatilepb.c')
-rw-r--r--hw/versatilepb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/versatilepb.c b/hw/versatilepb.c
index f9e9988fc6..c4c867d0f6 100644
--- a/hw/versatilepb.c
+++ b/hw/versatilepb.c
@@ -320,6 +320,7 @@ QEMUMachine versatilepb_machine = {
.desc = "ARM Versatile/PB (ARM926EJ-S)",
.init = vpb_init,
.use_scsi = 1,
+ .max_cpus = 1,
};
QEMUMachine versatileab_machine = {
@@ -327,4 +328,5 @@ QEMUMachine versatileab_machine = {
.desc = "ARM Versatile/AB (ARM926EJ-S)",
.init = vab_init,
.use_scsi = 1,
+ .max_cpus = 1,
};