aboutsummaryrefslogtreecommitdiff
path: root/hdata/test
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-01-11 17:33:08 -0600
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-02-02 16:22:00 +1100
commitcdf45901235245a7a8f4bfe3d170d7a0472c7f78 (patch)
treec3ef92fb0fc2f5cc91fae15ad970d8966108b7ab /hdata/test
parente0225ccaf9bd6c8882a2839256d07645737836e4 (diff)
downloadskiboot-cdf45901235245a7a8f4bfe3d170d7a0472c7f78.zip
skiboot-cdf45901235245a7a8f4bfe3d170d7a0472c7f78.tar.gz
skiboot-cdf45901235245a7a8f4bfe3d170d7a0472c7f78.tar.bz2
hdata: Fix ibm,pa-features for all CPU types
Hopefully the values are all right ;-) A future TODO is to use some nice macro to make it clearer who is what. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [stewart@linux.vnet.ibm.com: fake PVR_VERS_MAJ, use size_t] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/test')
-rw-r--r--hdata/test/hdata_to_dt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c
index 06f9005..e610863 100644
--- a/hdata/test/hdata_to_dt.c
+++ b/hdata/test/hdata_to_dt.c
@@ -70,6 +70,9 @@ struct cpu_thread {
struct cpu_thread __boot_cpu, *boot_cpu = &__boot_cpu;
static unsigned long fake_pvr_type = PVR_TYPE_P7;
+// Fake PVR_VERS_MAJ to 1
+#define PVR_VERS_MAJ(v) (1)
+
static inline unsigned long mfspr(unsigned int spr)
{
assert(spr == SPR_PVR);