mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix fake CPU ID value (Igor Kovalenko)
Small correction: cpuid property of qemu cpu should be "0" for the linux kernel to boot on qemu. This is because kernel is reading cpu registers to find out current smp processor ID and it happens to find out "0" cpuid because corresponding register is zeroed by qemu. Currently kernel fails since there is no "0" cpu node in tree. git-svn-id: svn://coreboot.org/openbios/openbios-devel@283 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -424,7 +424,7 @@ static void cpu_generic_init(const struct cpudef *cpu)
|
|||||||
push_str("sparc-version");
|
push_str("sparc-version");
|
||||||
fword("property");
|
fword("property");
|
||||||
|
|
||||||
PUSH(1);
|
PUSH(0);
|
||||||
fword("encode-int");
|
fword("encode-int");
|
||||||
push_str("cpuid");
|
push_str("cpuid");
|
||||||
fword("property");
|
fword("property");
|
||||||
|
|||||||
Reference in New Issue
Block a user