From 895eeb49239eae947742bc2501836cc774d3467a Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 17 Jan 2026 13:55:50 -0500 Subject: [PATCH] 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 --- stand/powerpc/ofw/cas.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stand/powerpc/ofw/cas.c b/stand/powerpc/ofw/cas.c index 45fd4d8d567..af1497e9811 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) },