x86: Fix the CPUID Long Mode Address Size function.
The value in EAX has an 8 bit field for the linear address size and one for the physical address size when calling that function. A recent change implemented it but returned 0xff for both of those fields. That implies that linear and physical addresses are 255 bits wide which is wrong. When using the KVM CPU model this causes an error, presumably because some of those bits are actually reserved, or the CPU or kernel realizes 255 bits is a bad value. This change makes those values 48.
This commit is contained in:
parent
27b7b9e561
commit
d228db1143
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ namespace X86ISA {
|
|||
0x69746e65, 0x444d4163);
|
||||
break;
|
||||
case LongModeAddressSize:
|
||||
result = CpuidResult(0x0000ffff, 0x00000000,
|
||||
result = CpuidResult(0x00003030, 0x00000000,
|
||||
0x00000000, 0x00000000);
|
||||
break;
|
||||
/* case SVMInfo:
|
||||
|
|
Loading…
Reference in a new issue