projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6977dfe
)
target-i386: svm: Fix MSRPM check
author
Adam Lackorzynski
<adam@os.inf.tu-dresden.de>
Sun, 15 Aug 2010 13:58:32 +0000
(15:58 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Sun, 22 Aug 2010 21:19:00 +0000
(16:19 -0500)
Correct the calculation of the offset in the msrpm
for the MSR range 0 - 0x1fff.
Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/op_helper.c
patch
|
blob
|
blame
|
history
diff --git
a/target-i386/op_helper.c
b/target-i386/op_helper.c
index c50e818e7264df2918079284c4216a8995da5741..ec6b3e938457cc591c7b3725732362deb0a5f796 100644
(file)
--- a/
target-i386/op_helper.c
+++ b/
target-i386/op_helper.c
@@
-5237,7
+5237,7
@@
void helper_svm_check_intercept_param(uint32_t type, uint64_t param)
switch((uint32_t)ECX) {
case 0 ... 0x1fff:
t0 = (ECX * 2) % 8;
switch((uint32_t)ECX) {
case 0 ... 0x1fff:
t0 = (ECX * 2) % 8;
- t1 =
ECX
/ 8;
+ t1 =
(ECX * 2)
/ 8;
break;
case 0xc0000000 ... 0xc0001fff:
t0 = (8192 + ECX - 0xc0000000) * 2;
break;
case 0xc0000000 ... 0xc0001fff:
t0 = (8192 + ECX - 0xc0000000) * 2;
This page took
0.031502 seconds
and
4
git commands to generate.