diff options
author | Eduardo Habkost | 2014-03-18 20:29:24 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2014-03-19 12:24:29 +0100 |
commit | af67ee9264c135f4b213b4bc1a3871c4e9ec7da3 (patch) | |
tree | 791568596d5e8df4a4ed05f6a6f377a78ab4d5a8 | |
parent | sysemu.h: Document what MAX_CPUMASK_BITS really limits (diff) | |
download | qemu-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |