mirror of https://gitee.com/openkylin/qemu.git
fix undefined shifts by >32
This one is for 0.12 too. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
117f8eb81d
commit
0dfbd51446
4
vl.c
4
vl.c
|
@ -2380,9 +2380,9 @@ static void numa_add(const char *optarg)
|
|||
fprintf(stderr,
|
||||
"only 63 CPUs in NUMA mode supported.\n");
|
||||
}
|
||||
value = (1 << (endvalue + 1)) - (1 << value);
|
||||
value = (2ULL << endvalue) - (1ULL << value);
|
||||
} else {
|
||||
value = 1 << value;
|
||||
value = 1ULL << value;
|
||||
}
|
||||
}
|
||||
node_cpumask[nodenr] = value;
|
||||
|
|
Loading…
Reference in New Issue