summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Habkost2014-03-18 20:29:24 +0100
committerMichael S. Tsirkin2014-03-19 12:24:29 +0100
commitaf67ee9264c135f4b213b4bc1a3871c4e9ec7da3 (patch)
tree791568596d5e8df4a4ed05f6a6f377a78ab4d5a8
parentsysemu.h: Document what MAX_CPUMASK_BITS really limits (diff)
downloadqemu-af67ee9264c135f4b213b4bc1a3871c4e9ec7da3.tar.gz
qemu-af67ee9264c135f4b213b4bc1a3871c4e9ec7da3.tar.xz
qemu-af67ee9264c135f4b213b4bc1a3871c4e9ec7da3.zip
vl.c: Use MAX_CPUMASK_BITS macro instead of hardcoded constant
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index c8a5bfa959..23e1dbd245 100644
--- a/vl.c
+++ b/vl.c
@@ -1413,7 +1413,7 @@ static void smp_parse(QemuOpts *opts)
max_cpus = smp_cpus;
}
- if (max_cpus > 255) {
+ if (max_cpus > MAX_CPUMASK_BITS) {
fprintf(stderr, "Unsupported number of maxcpus\n");
exit(1);
}