diff options
| author | Adam Lackorzynski | 2010-08-15 15:58:32 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2010-08-22 23:19:00 +0200 |
| commit | 583cd3cb93649ef223e36bf33197de65c3d9767b (patch) | |
| tree | e0860ed9875b1dad3b59a846a78cdf2bc83a4410 | |
| parent | exec: remove code duplication in qemu_ram_alloc() and qemu_ram_alloc_from_ptr() (diff) | |
| download | qemu-583cd3cb93649ef223e36bf33197de65c3d9767b.tar.gz qemu-583cd3cb93649ef223e36bf33197de65c3d9767b.tar.xz qemu-583cd3cb93649ef223e36bf33197de65c3d9767b.zip | |
target-i386: svm: Fix MSRPM check
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>
| -rw-r--r-- | target-i386/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index c50e818e72..ec6b3e9384 100644 --- 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; - t1 = ECX / 8; + t1 = (ECX * 2) / 8; break; case 0xc0000000 ... 0xc0001fff: t0 = (8192 + ECX - 0xc0000000) * 2; |
