From patchwork Thu Dec 5 15:44:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Musta X-Patchwork-Id: 297175 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 133C62C0084 for ; Fri, 6 Dec 2013 02:46:16 +1100 (EST) Received: from localhost ([::1]:54161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vob81-0003GG-9Z for incoming@patchwork.ozlabs.org; Thu, 05 Dec 2013 10:46:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vob7B-0003EK-GJ for qemu-devel@nongnu.org; Thu, 05 Dec 2013 10:45:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vob75-0005Vc-Gu for qemu-devel@nongnu.org; Thu, 05 Dec 2013 10:45:21 -0500 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:48071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vob75-0005VT-CZ; Thu, 05 Dec 2013 10:45:15 -0500 Received: by mail-ob0-f179.google.com with SMTP id wm4so17727129obc.24 for ; Thu, 05 Dec 2013 07:45:14 -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=C85Qmqgujlu0/i6dplZaOASwRpyJesuyYPvtdThsJRA=; b=JtPhwlFzaQPZS3hKe5Or2FZM6MfgCQJRYD5z16fwXfX7ahXPL3Jtz2WRyOLBLNJ/AN qU/oYvWrJVHvtyzfloz3ih9yOPolZ45wljf/B1+yV+Vx2qJHPUgh0AosT0MuT7LdFWEx jlvl8StNWYeUEL+frWlUVxfI0/H+IKr0TwgsBcvR+x59hPpdalq2qzcBQ5k6CT6d/Zrk rMyKQd7AC8LjIK1Fvo9Qs9VJbFzlZLPReangCOjQMb9I4NLjtsxSCF8FpMtsmG7HAxDQ vqwijzUGe9GhOS44GPS2LQn/59o7ALbcMeFRyGnuybTaw9fLIjBrBV7H1bR73e3khLoN wK/A== X-Received: by 10.182.87.42 with SMTP id u10mr68851348obz.22.1386258314756; Thu, 05 Dec 2013 07:45:14 -0800 (PST) Received: from tmusta-sc.rchland.ibm.com (rchp4.rochester.ibm.com. [129.42.161.36]) by mx.google.com with ESMTPSA id h4sm60116518oel.3.2013.12.05.07.45.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Dec 2013 07:45:14 -0800 (PST) From: Tom Musta To: qemu-devel@nongnu.org Date: Thu, 5 Dec 2013 09:44:50 -0600 Message-Id: <1386258303-2684-2-git-send-email-tommusta@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386258303-2684-1-git-send-email-tommusta@gmail.com> References: <1386258303-2684-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:4003:c01::233 Cc: Tom Musta , qemu-ppc@nongnu.org Subject: [Qemu-devel] [V4 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 Reviewed-by: Richard Henderson --- 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)