additional cpu hack

This commit is contained in:
Elliot Nunn 2018-03-17 16:10:03 +08:00
parent 4b7971971f
commit 6ab4cc4edd
2 changed files with 9 additions and 0 deletions

BIN
pef/ndrv/ata/kauai Normal file

Binary file not shown.

View File

@ -24,6 +24,7 @@ COMPATIBLE = [
DELETE_MODEL_CHECK = False
DELETE_CHECKSUM_CHECK = False
G4_FIX = False
FAKE_EARLY_G4 = True
# *After* OF has loaded this file, set the "model" property?
SET_MODEL_PROPERTY = ''
@ -162,6 +163,14 @@ then
\ END G4_FIX
"""
if FAKE_EARLY_G4: BOOT_SCRIPT += """
\ FAKE_EARLY_G4:
dev /cpus/PowerPC,G4
800c0000 encode-int " cpu-version" property
device-end
\ END FAKE_EARLY_G4
"""
BOOT_SCRIPT += """
here >r
dev /