[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v2 4/9] target-ppc: Define Processor Compatibility Mas
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-ppc] [PATCH v2 4/9] target-ppc: Define Processor Compatibility Masks |
Date: |
Wed, 21 May 2014 18:27:37 +1000 |
This introduces PCR mask for supported compatibility modes.
This will be used later by the ibm,client-architecture-support call.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
---
target-ppc/cpu-qom.h | 1 +
target-ppc/translate_init.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/target-ppc/cpu-qom.h b/target-ppc/cpu-qom.h
index e88e1da..13c7031 100644
--- a/target-ppc/cpu-qom.h
+++ b/target-ppc/cpu-qom.h
@@ -57,6 +57,7 @@ typedef struct PowerPCCPUClass {
uint32_t pvr;
uint32_t pvr_mask;
+ uint64_t pcr_mask;
uint32_t svr;
uint64_t insns_flags;
uint64_t insns_flags2;
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 41afc5e..faac74a 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7850,6 +7850,7 @@ POWERPC_FAMILY(POWER7)(ObjectClass *oc, void *data)
dc->props = powerpc_servercpu_properties;
pcc->pvr = CPU_POWERPC_POWER7_BASE;
pcc->pvr_mask = CPU_POWERPC_POWER7_MASK;
+ pcc->pcr_mask = PCR_COMPAT_2_05 | PCR_COMPAT_2_06;
pcc->init_proc = init_proc_POWER7;
pcc->check_pow = check_pow_nocheck;
pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | PPC_STRING | PPC_MFTB |
@@ -7910,6 +7911,7 @@ POWERPC_FAMILY(POWER7P)(ObjectClass *oc, void *data)
dc->props = powerpc_servercpu_properties;
pcc->pvr = CPU_POWERPC_POWER7P_BASE;
pcc->pvr_mask = CPU_POWERPC_POWER7P_MASK;
+ pcc->pcr_mask = PCR_COMPAT_2_05 | PCR_COMPAT_2_06;
pcc->init_proc = init_proc_POWER7;
pcc->check_pow = check_pow_nocheck;
pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | PPC_STRING | PPC_MFTB |
@@ -7982,6 +7984,7 @@ POWERPC_FAMILY(POWER8)(ObjectClass *oc, void *data)
dc->props = powerpc_servercpu_properties;
pcc->pvr = CPU_POWERPC_POWER8_BASE;
pcc->pvr_mask = CPU_POWERPC_POWER8_MASK;
+ pcc->pcr_mask = PCR_COMPAT_2_05 | PCR_COMPAT_2_06;
pcc->init_proc = init_proc_POWER8;
pcc->check_pow = check_pow_nocheck;
pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | PPC_STRING | PPC_MFTB |
--
1.9.rc0
- [Qemu-ppc] [PATCH v2 0/9] spapr: Enable ibm, client-architecture-support, Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 4/9] target-ppc: Define Processor Compatibility Masks,
Alexey Kardashevskiy <=
- [Qemu-ppc] [PATCH v2 6/9] spapr: Rework spapr_fixup_cpu_dt(), Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 3/9] target-ppc: Implement "compat" CPU option, Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 5/9] spapr: Add ibm, client-architecture-support call, Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 2/9] spapr: Move SMT-related properties out of skeleton fdt, Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 1/9] target-ppc: Add "compat" CPU option, Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 9/9] KVM: PPC: Enable compatibility mode, Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 7/9] spapr: Limit threads per core according to current compatibility mode, Alexey Kardashevskiy, 2014/05/21
- [Qemu-ppc] [PATCH v2 8/9] spapr: Implement processor compatibility in ibm, client-architecture-support, Alexey Kardashevskiy, 2014/05/21