From patchwork Thu Jun 15 05:53:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9788109 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 622C760231 for ; Thu, 15 Jun 2017 05:57:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55BED28500 for ; Thu, 15 Jun 2017 05:57:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A27E28538; Thu, 15 Jun 2017 05:57:27 +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 9F88128500 for ; Thu, 15 Jun 2017 05:57:26 +0000 (UTC) Received: from localhost ([::1]:52083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLNmY-0002xM-06 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 15 Jun 2017 01:57:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLNjI-0000oD-5E for qemu-devel@nongnu.org; Thu, 15 Jun 2017 01:54:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLNjF-00017g-PV for qemu-devel@nongnu.org; Thu, 15 Jun 2017 01:54:04 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:34188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLNjF-00017N-JD for qemu-devel@nongnu.org; Thu, 15 Jun 2017 01:54:01 -0400 Received: by mail-pf0-x244.google.com with SMTP id d5so717257pfe.1 for ; Wed, 14 Jun 2017 22:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=fUbk68YXNgg2rcM4XSKxZpYFJHHYn3XBKuenHUbdE7c=; b=D4WNI33rQYhyZ5LJUB6n9Md9OoIGSaNmAszWd8QPpyHkZXJdRMEktqCuQbI5XgbBuL To57MFvYHwesEYG1X+RgHOqW63z6PMdR0d2NeYfUM1jGeg+9v8j+S+gdyOph/wMT+xg2 kcNbqyaWu5LFmYV20x3aaxEs7yvgh6FKNDOqTY1nwzc6xSYgl40qii61ip26NuHqSGP7 Y99a5G4kxfV8swRxMIWforhGrx82ozEzcMHTqj5q0Z3psPonnVdJICUASKRr+q+QPbCd BBJUkl7567zSOR8FHxXCvZqouwp1Pvvz4lM7C6J0D3RREbT/JtnMPvwRALY+XB2QJWmQ X9lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=fUbk68YXNgg2rcM4XSKxZpYFJHHYn3XBKuenHUbdE7c=; b=ho2czop2qDJHBpQfA1eE6j4M4ZHC1VsWL+bducufSa92la1+KlKCqar6ZoNFs8tL3G n/C+sDoPovZXGqqoiuWQPjA+NRl5u8mT/orOU+3/S6XRO/uCxLs+9XZ1Oe7MpErVww55 xUsx2pNzS0tWjzoa1/5YaHOTll0wTf8hYXBpMQtbit4jJROL0OfK6QCu747u9qXMckG3 sFz5dLwobDaFhomYNszji2xiuOY2LH3nQybyp0yvhGQW6/nTwOhN7MXNLCy3A8yUYhZ0 gtaGP5CKyvzxgxL3QNZVXaef4sLPKNp71azjwIWQAGrFgE+50JTScCzXF+1o9xU0VAcL BAFw== X-Gm-Message-State: AKS2vOxPtEVpFWo96oWBJGMsab+12jLRRqEu3HGneBbXL2DBAonJJTyU MRf1JItg2yyQE3B3hFA= X-Received: by 10.99.95.147 with SMTP id t141mr3540443pgb.263.1497506040351; Wed, 14 Jun 2017 22:54:00 -0700 (PDT) Received: from bigtime.twiddle.net (97-113-165-157.tukw.qwest.net. [97.113.165.157]) by smtp.gmail.com with ESMTPSA id k73sm310058pge.13.2017.06.14.22.53.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 22:53:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 14 Jun 2017 22:53:52 -0700 Message-Id: <20170615055356.20684-2-rth@twiddle.net> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170615055356.20684-1-rth@twiddle.net> References: <20170615055356.20684-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::244 Subject: [Qemu-devel] [PATCH 1/5] target/s390x: Map existing FAC_* names to S390_FEAT_* names 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: aurelien@aurel32.net, david@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The FAC_ names were placeholders prior to the introduction of the current facility modeling. Signed-off-by: Richard Henderson --- target/s390x/translate.c | 59 ++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/target/s390x/translate.c b/target/s390x/translate.c index 8c055b7..af18ffb 100644 --- a/target/s390x/translate.c +++ b/target/s390x/translate.c @@ -1178,39 +1178,10 @@ typedef enum { EXIT_NORETURN, } ExitStatus; -typedef enum DisasFacility { - FAC_Z, /* zarch (default) */ - FAC_CASS, /* compare and swap and store */ - FAC_CASS2, /* compare and swap and store 2*/ - FAC_DFP, /* decimal floating point */ - FAC_DFPR, /* decimal floating point rounding */ - FAC_DO, /* distinct operands */ - FAC_EE, /* execute extensions */ - FAC_EI, /* extended immediate */ - FAC_FPE, /* floating point extension */ - FAC_FPSSH, /* floating point support sign handling */ - FAC_FPRGR, /* FPR-GR transfer */ - FAC_GIE, /* general instructions extension */ - FAC_HFP_MA, /* HFP multiply-and-add/subtract */ - FAC_HW, /* high-word */ - FAC_IEEEE_SIM, /* IEEE exception sumilation */ - FAC_MIE, /* miscellaneous-instruction-extensions */ - FAC_LAT, /* load-and-trap */ - FAC_LOC, /* load/store on condition */ - FAC_LD, /* long displacement */ - FAC_PC, /* population count */ - FAC_SCF, /* store clock fast */ - FAC_SFLE, /* store facility list extended */ - FAC_ILA, /* interlocked access facility 1 */ - FAC_LPP, /* load-program-parameter */ - FAC_DAT_ENH, /* DAT-enhancement */ - FAC_E2, /* extended-translation facility 2 */ -} DisasFacility; - struct DisasInsn { unsigned opc:16; DisasFormat fmt:8; - DisasFacility fac:8; + unsigned fac:8; unsigned spec:8; const char *name; @@ -5413,6 +5384,34 @@ enum DisasInsnEnum { #define SPEC_prep_0 0 #define SPEC_wout_0 0 +/* Give smaller names to the various facilities. */ +#define FAC_Z S390_FEAT_ZARCH +#define FAC_CASS S390_FEAT_COMPARE_AND_SWAP_AND_STORE +#define FAC_CASS2 S390_FEAT_COMPARE_AND_SWAP_AND_STORE_2 +#define FAC_DFP S390_FEAT_DFP +#define FAC_DFPR S390_FEAT_FLOATING_POINT_SUPPPORT_ENH /* DFP-rounding */ +#define FAC_DO S390_FEAT_STFLE_45 /* distinct-operands */ +#define FAC_EE S390_FEAT_EXECUTE_EXT +#define FAC_EI S390_FEAT_EXTENDED_IMMEDIATE +#define FAC_FPE S390_FEAT_FLOATING_POINT_EXT +#define FAC_FPSSH S390_FEAT_FLOATING_POINT_SUPPPORT_ENH /* FPS-sign-handling */ +#define FAC_FPRGR S390_FEAT_FLOATING_POINT_SUPPPORT_ENH /* FPR-GR-transfer */ +#define FAC_GIE S390_FEAT_GENERAL_INSTRUCTIONS_EXT +#define FAC_HFP_MA S390_FEAT_HFP_MADDSUB +#define FAC_HW S390_FEAT_STFLE_45 /* high-word */ +#define FAC_IEEEE_SIM S390_FEAT_FLOATING_POINT_SUPPPORT_ENH /* IEEE-exception-simulation */ +#define FAC_MIE S390_FEAT_STFLE_49 /* misc-instruction-extensions */ +#define FAC_LAT S390_FEAT_STFLE_49 /* load-and-trap */ +#define FAC_LOC S390_FEAT_STFLE_45 /* load/store on condition 1 */ +#define FAC_LD S390_FEAT_LONG_DISPLACEMENT +#define FAC_PC S390_FEAT_STFLE_45 /* population count */ +#define FAC_SCF S390_FEAT_STORE_CLOCK_FAST +#define FAC_SFLE S390_FEAT_STFLE +#define FAC_ILA S390_FEAT_STFLE_45 /* interlocked-access-facility 1 */ +#define FAC_LPP S390_FEAT_SET_PROGRAM_PARAMETERS /* load-program-parameter */ +#define FAC_DAT_ENH S390_FEAT_DAT_ENH +#define FAC_E2 S390_FEAT_EXTENDED_TRANSLATION_2 + static const DisasInsn insn_info[] = { #include "insn-data.def" };