qemu64 CPU model is incorrect
Bug #1860575 reported by
The Lemon Man
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
At the moment the "qemu64" CPU is defined as follows:
```
.vendor = CPUID_VENDOR_AMD,
.family = 6,
.model = 6,
.stepping = 3,
```
According to Wikipedia [1] this means the CPU is defined as part of the
K7 family while the AMD64 ISA was only introduced with the K8 series!
This causes some software such as LLVM to notice the problem (32-bit cpu
with 64-bit capability reported in the cpuid flag) and produce various
error messages.
The simple solution would be to upgrade this definition to use the Sledgehammer
family (15) instead.
[1] https:/
Changed in qemu: | |
status: | Incomplete → New |
To post a comment you must log in.
Your analysis of the problem with family makes sense & we do have mechanism to fix this in QEMU while keeping back compat for existing deployments.
I'm curious as to the actual errors LLVM reports ?
FWIW, even though qemu64 is the default CPU, practically everyone would be better off choosing one of the other CPU models explicitly to better suit their desired use case. There is some guidance here https:/ /qemu.weilnetz. de/doc/ qemu-doc. html#cpu_ 005fmodels