Commit af67ee92 authored by Eduardo Habkost's avatar Eduardo Habkost Committed by Michael S. Tsirkin
Browse files

vl.c: Use MAX_CPUMASK_BITS macro instead of hardcoded constant

parent d2995916
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }