diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2026-01-17 13:55:50 -0500 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2026-01-17 13:59:43 -0500 |
| commit | 895eeb49239eae947742bc2501836cc774d3467a (patch) | |
| tree | 0fa2c69c35176086a5bd3690f8ac682733a2d86c /stand | |
| parent | 9be9ab2a242080dea6254e187cf211604170de07 (diff) | |
powerpc/loader: Add CAS support for older CPUs
QEMU creates a "ibm,arch-vec-5-platform-support" property for all
pseries emulations. Add POWER7 and POWER6 to the CAS list, more can be
added later as needed/desired.
MFC after: 1 week
Diffstat (limited to 'stand')
| -rw-r--r-- | stand/powerpc/ofw/cas.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stand/powerpc/ofw/cas.c b/stand/powerpc/ofw/cas.c index 45fd4d8d567f..af1497e98119 100644 --- a/stand/powerpc/ofw/cas.c +++ b/stand/powerpc/ofw/cas.c @@ -36,6 +36,9 @@ #endif /* PVR */ +#define PVR_CPU_P6 0x003e0000 +#define PVR_CPU_P7 0x003f0000 +#define PVR_CPU_P7PLUS 0x004a0000 #define PVR_CPU_P8E 0x004b0000 #define PVR_CPU_P8NVL 0x004c0000 #define PVR_CPU_P8 0x004d0000 @@ -134,6 +137,9 @@ static struct ibm_arch_vec { struct opt_vec5 vec5; } __packed ibm_arch_vec = { /* pvr_list */ { + { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P6) }, + { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P7) }, + { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P7PLUS) }, { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8) }, { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8E) }, { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8NVL) }, |
