projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08183b0
)
fix undefined shifts by >32
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 4 Feb 2010 13:31:50 +0000
(14:31 +0100)
committer
Blue Swirl
<blauwirbel@gmail.com>
Fri, 5 Feb 2010 18:13:04 +0000
(18:13 +0000)
This one is for 0.12 too.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index
39833fc
..
ea9a95c
100644
(file)
--- a/
vl.c
+++ b/
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 = 1
ULL
<< value;
}
}
node_cpumask[nodenr] = value;