From patchwork Fri Jul 22 16:53:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 9243853 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 973C0602F0 for ; Fri, 22 Jul 2016 16:55:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88E4527FA4 for ; Fri, 22 Jul 2016 16:55:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DB8C27FB6; Fri, 22 Jul 2016 16:55:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 12FB627FA4 for ; Fri, 22 Jul 2016 16:55:17 +0000 (UTC) Received: from localhost ([::1]:48575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQdjI-0007zQ-Dp for patchwork-qemu-devel@patchwork.kernel.org; Fri, 22 Jul 2016 12:55:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQdin-0007nz-3A for qemu-devel@nongnu.org; Fri, 22 Jul 2016 12:54:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQdij-0006iK-Ak for qemu-devel@nongnu.org; Fri, 22 Jul 2016 12:54:44 -0400 Received: from ssl.serverraum.org ([213.133.101.245]:55039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQdii-0006iG-W5; Fri, 22 Jul 2016 12:54:41 -0400 Received: from mwalle01.kse.adk.loc (unknown [194.25.174.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 1525222375; Fri, 22 Jul 2016 18:54:37 +0200 (CEST) Authentication-Results: ssl.serverraum.org; dmarc=none header.from=walle.cc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1469206477; bh=yKKVU64PHUJZXhypgM9HFK9zATmHjs5icMiuBIEOY4g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DPQZVafUKhPE/YnxXK+PgoG1qZfYYalcJfGKB7OMZfC+3xAvqAnrcIVn2hdKQScHt kZSo3++OqXIt0u8aX+DFUnA7ElPHHzD5EOZDmj69NXxb1QRY8fwxZmp2ZaknWtE/Ed rVYpQbbAQgNNnZBPilLInie+FGVWPAFCyHvZ9f4g= From: Michael Walle To: Alexander Graf , qemu-ppc@nongnu.org, qemu-devel@nongnu.org Date: Fri, 22 Jul 2016 18:53:51 +0200 Message-Id: <1469206431-27245-1-git-send-email-michael@walle.cc> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1469204977-23590-1-git-send-email-michael@walle.cc> References: <1469204977-23590-1-git-send-email-michael@walle.cc> X-Virus-Scanned: clamav-milter 0.99.2 at web X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.133.101.245 Subject: [Qemu-devel] [PATCH v2] target-ppc: add PPC_MFTB flag to e500mc and e5500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Walle , David Gibson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP According to the e500mc and e5500 core reference manual they have support for the mftb instruction. Signed-off-by: Michael Walle --- changes v2: - add the flag to e500mc, too target-ppc/translate_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 5ecafc7..5f28a36 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -5133,7 +5133,7 @@ POWERPC_FAMILY(e500mc)(ObjectClass *oc, void *data) dc->desc = "e500mc core"; pcc->init_proc = init_proc_e500mc; pcc->check_pow = check_pow_none; - pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | + pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | PPC_MFTB | PPC_WRTEE | PPC_RFDI | PPC_RFMCI | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | @@ -5179,7 +5179,7 @@ POWERPC_FAMILY(e5500)(ObjectClass *oc, void *data) dc->desc = "e5500 core"; pcc->init_proc = init_proc_e5500; pcc->check_pow = check_pow_none; - pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | + pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | PPC_MFTB | PPC_WRTEE | PPC_RFDI | PPC_RFMCI | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | PPC_CACHE_DCBA |