From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5qbc-0006Za-4p for qemu-devel@nongnu.org; Wed, 22 Jan 2014 00:44:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5qbT-0005PS-Kz for qemu-devel@nongnu.org; Wed, 22 Jan 2014 00:44:03 -0500 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:53819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5qbS-0005P1-Qh for qemu-devel@nongnu.org; Wed, 22 Jan 2014 00:43:55 -0500 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Jan 2014 15:43:52 +1000 From: Alexey Kardashevskiy Date: Wed, 22 Jan 2014 16:43:44 +1100 Message-Id: <1390369426-6462-2-git-send-email-aik@ozlabs.ru> In-Reply-To: <1390369426-6462-1-git-send-email-aik@ozlabs.ru> References: <1390369426-6462-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v3 1/3] target-ppc: introduce powerisa-207-server flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alexander Graf This flag will be used to decide whether to emulate some bits of H_SET_MODE hypercall because some are POWER8-only. While we are here, add 2.05 flag to POWER8 family too. POWER7/7+ already has it. Signed-off-by: Alexey Kardashevskiy --- target-ppc/cpu.h | 2 ++ target-ppc/translate_init.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 51bcd4a..8e46bda 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -1875,6 +1875,8 @@ enum { PPC2_DBRX = 0x0000000000000010ULL, /* Book I 2.05 PowerPC specification */ PPC2_ISA205 = 0x0000000000000020ULL, + /* PowerISA 2.07 Book3s specification */ + PPC2_ISA207S = 0x0000000000000040ULL, #define PPC_TCG_INSNS2 (PPC2_BOOKE206 | PPC2_VSX | PPC2_PRCNTL | PPC2_DBRX | \ PPC2_ISA205) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 35470d4..7e25c35 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -7144,7 +7144,8 @@ POWERPC_FAMILY(POWER8)(ObjectClass *oc, void *data) PPC_64B | PPC_ALTIVEC | PPC_SEGMENT_64B | PPC_SLBI | PPC_POPCNTB | PPC_POPCNTWD; - pcc->insns_flags2 = PPC2_VSX | PPC2_DFP | PPC2_DBRX; + pcc->insns_flags2 = PPC2_VSX | PPC2_DFP | PPC2_DBRX | PPC2_ISA205 | + PPC2_ISA207S; pcc->msr_mask = 0x800000000284FF36ULL; pcc->mmu_model = POWERPC_MMU_2_06; #if defined(CONFIG_SOFTMMU) -- 1.8.4.rc4