From patchwork Tue Dec 3 15:58:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Musta X-Patchwork-Id: 296267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 835072C0089 for ; Wed, 4 Dec 2013 04:58:51 +1100 (EST) Received: from localhost ([::1]:43133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnsOw-0005k1-4G for incoming@patchwork.ozlabs.org; Tue, 03 Dec 2013 11:00:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnsNF-0002w4-0I for qemu-devel@nongnu.org; Tue, 03 Dec 2013 10:59:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnsN6-0006NJ-IU for qemu-devel@nongnu.org; Tue, 03 Dec 2013 10:58:56 -0500 Received: from mail-qe0-x230.google.com ([2607:f8b0:400d:c02::230]:61860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnsN6-0006NF-DZ; Tue, 03 Dec 2013 10:58:48 -0500 Received: by mail-qe0-f48.google.com with SMTP id gc15so14751747qeb.21 for ; Tue, 03 Dec 2013 07:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qkSvZKW1qEKVeCYCJq14OhEX9ehWdNY8KE8TepSATMU=; b=n7V43+2UuSW51cn4kwMegKSaKuiELtgxfnlIpu7tJnt1VNdEV0ZxkQcGiTsH3/oQyw /RbR6Jhf1SH0TwlQkoVTIAddi/n0Cw5z+6rN88iOftDSbtumNcSON7/3stTivfiyNaUt wsFYuUgKrR+vhu3v3UwkxRK3lPMUB5kDkEDO3rLBCcUIMAk1Ko0iTUDo9Im4awxL3vax 1+vM2yXsg6Fx9OzwEd6hkw7ldAQrjhU//ROl5dt5iBvsuRSgiMJwt14Al8+J03/lkWGp zYuFfi4ad4onhPnzuMx40gi8wTH1cjrlgA+DL7x6Z+12U8xQ03KN4rwCyTBDeSN+m8qA 8VnQ== X-Received: by 10.49.120.8 with SMTP id ky8mr60769492qeb.29.1386086327612; Tue, 03 Dec 2013 07:58:47 -0800 (PST) Received: from tmusta-sc.rchland.ibm.com (rchp4.rochester.ibm.com. [129.42.161.36]) by mx.google.com with ESMTPSA id v3sm54494921qaj.12.2013.12.03.07.58.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 07:58:46 -0800 (PST) From: Tom Musta To: qemu-devel@nongnu.org Date: Tue, 3 Dec 2013 09:58:12 -0600 Message-Id: <1386086305-8163-2-git-send-email-tommusta@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386086305-8163-1-git-send-email-tommusta@gmail.com> References: <1386086305-8163-1-git-send-email-tommusta@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::230 Cc: Tom Musta , qemu-ppc@nongnu.org Subject: [Qemu-devel] [V3 PATCH 01/14] target-ppc: VSX Stage 4: Add VSX 2.07 Flag X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch adds a flag to identify those VSX instructions that are new to Power ISA V2.07. The flag is added to the Power 8 processor initialization so that the P8 models understand how to decode and emulate instructions in this category. Signed-off-by: Tom Musta --- target-ppc/cpu.h | 4 +++- target-ppc/translate_init.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index bb84767..0abc848 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -1875,9 +1875,11 @@ enum { PPC2_DBRX = 0x0000000000000010ULL, /* Book I 2.05 PowerPC specification */ PPC2_ISA205 = 0x0000000000000020ULL, + /* VSX additions in ISA 2.07 */ + PPC2_VSX207 = 0x0000000000000040ULL, #define PPC_TCG_INSNS2 (PPC2_BOOKE206 | PPC2_VSX | PPC2_PRCNTL | PPC2_DBRX | \ - PPC2_ISA205) + PPC2_ISA205 | PPC2_VSX207) }; /*****************************************************************************/ diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 13457ec..e14ab63 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -7270,7 +7270,7 @@ 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_VSX207 | PPC2_DFP | PPC2_DBRX; pcc->msr_mask = 0x800000000284FF36ULL; pcc->mmu_model = POWERPC_MMU_2_06; #if defined(CONFIG_SOFTMMU)