aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-28 10:59:59 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-28 10:59:59 +0000
commit3d878caab914d6ac7b3b69e458971b7550ea790b (patch)
treec5f52cbc4b19e76d0a05e29efd4ff7309f9feaa8 /vl.c
parentd4354694e9813be1cb0b26ad1706701ea9b524ce (diff)
Set default max_cpus to one.
Clean-up machine definitions. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5566 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 0ca71519b5..1afe36e6e9 100644
--- a/vl.c
+++ b/vl.c
@@ -9407,6 +9407,7 @@ int main(int argc, char **argv)
}
}
+ machine->max_cpus = machine->max_cpus ?: 1; /* Default to UP */
if (smp_cpus > machine->max_cpus) {
fprintf(stderr, "Number of SMP cpus requested (%d), exceeds max cpus "
"supported by machine `%s' (%d)\n", smp_cpus, machine->name,