From patchwork Wed Aug 21 17:29:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Bobek X-Patchwork-Id: 11107801 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2FBA214DE for ; Wed, 21 Aug 2019 18:05:31 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 05DBE214DA for ; Wed, 21 Aug 2019 18:05:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gXjtE/ML" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 05DBE214DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:51492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0UzB-0005Zf-K2 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 21 Aug 2019 14:05:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41153) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0URU-0001R1-Fp for qemu-devel@nongnu.org; Wed, 21 Aug 2019 13:30:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0URT-0007o6-9B for qemu-devel@nongnu.org; Wed, 21 Aug 2019 13:30:40 -0400 Received: from mail-yb1-xb41.google.com ([2607:f8b0:4864:20::b41]:41465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0URT-0007ne-4v for qemu-devel@nongnu.org; Wed, 21 Aug 2019 13:30:39 -0400 Received: by mail-yb1-xb41.google.com with SMTP id 1so900566ybj.8 for ; Wed, 21 Aug 2019 10:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=u85Ude1ydVnfdQhG5ukKRSXQHHwYa85nY6X3O1K+7Jc=; b=gXjtE/MLwgsy1Kp8SgVU5ZJHLJxwz5RKUAIUtGan5NDJAe+vR6BbEP1cmvgQ4zw18N cNH3jpCvZs2YH4PT8cM9MJ0IbC7REAj340x6u/0dANtKJhVxB3q0ZgT4D1tbOau4YN1+ OWRWXVbnXZfslrO2T0I/7T/7MnGNZ4Ah0i/lax/XLPKXqsRyA+OGCfFyyPHjqrdjnC5R dQyGuBuN8RTi0IYpjPzgFMrhimgcGWb5T5ZVg1fnpirNzHIijav7K85AwW1GJmwrujwc Mldgl4MFKKY4VtWm4+ZKw04lFYkJKHERhPv0rJCBqSdLdZCOxdxcP8Drh5KvW3N2JDbB 2mlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=u85Ude1ydVnfdQhG5ukKRSXQHHwYa85nY6X3O1K+7Jc=; b=ZA+bsl2UByEyo2dI5UXZydMvje2ljbj6S9vLI4az0+fHTd6W3DHxxJge/cNDH6FbnN 9fZl0ttYQhYrjSmxOM0S/u+UxSb586S13BjBOqrZfvxe3mqhBPPsZbZlyuWF6Iv35f4S lSIjnBiy0yYXOy+0HOxFG6wWsoud4qTqkL8VjEoIYUuV1GuT4UMmOqlkERncJrtYynbn UppWvMrcESlbJmxZQ2z2KgcoCPeCrLmMLbkJBDa0Unf2U8wRhh3ZkZutTQCcKXns24WA a1QCF4gaopH+u9MH6zRvcfmb6KfrxQTpnC0yemH9RBykIvP+fYDa3ltNyhg1SuevWpjA twQg== X-Gm-Message-State: APjAAAUWaTffo7sGVQpKGn8Bo5E5zqdsrk9DKwp5uynKzL8mLiu3Sq8b IV67fen9LFaVRWmPTuMcCIVNoaPG X-Google-Smtp-Source: APXvYqxoXWzVyPfoQGPjCCNRfHq3ab/JGkjXqnxv5r2/UJFoFdQ3o5hoNeer68oridnxNa5JOwgJGg== X-Received: by 2002:a25:1806:: with SMTP id 6mr25564458yby.415.1566408638523; Wed, 21 Aug 2019 10:30:38 -0700 (PDT) Received: from localhost.localdomain ([2601:c0:c67f:e390::3]) by smtp.gmail.com with ESMTPSA id l71sm2826167ywl.39.2019.08.21.10.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2019 10:30:37 -0700 (PDT) From: Jan Bobek To: qemu-devel@nongnu.org Date: Wed, 21 Aug 2019 13:29:15 -0400 Message-Id: <20190821172951.15333-40-jan.bobek@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190821172951.15333-1-jan.bobek@gmail.com> References: <20190821172951.15333-1-jan.bobek@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b41 Subject: [Qemu-devel] [RFC PATCH v4 39/75] target/i386: introduce SSE translators X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jan Bobek , =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Use the translator macros to define translators required by SSE instructions. Signed-off-by: Jan Bobek --- target/i386/translate.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/target/i386/translate.c b/target/i386/translate.c index fdfca03071..d77c08b7db 100644 --- a/target/i386/translate.c +++ b/target/i386/translate.c @@ -5720,6 +5720,9 @@ static void translate_insn0()( } \ } +DEF_TRANSLATE_INSN1(Mb) +DEF_TRANSLATE_INSN1(Md) + #define DEF_TRANSLATE_INSN2(opT1, opT2) \ static void translate_insn2(opT1, opT2)( \ CPUX86State *env, DisasContext *s, int modrm, \ @@ -5753,10 +5756,29 @@ static void translate_insn0()( DEF_TRANSLATE_INSN2(Ed, Pq) DEF_TRANSLATE_INSN2(Eq, Pq) +DEF_TRANSLATE_INSN2(Gd, Nq) +DEF_TRANSLATE_INSN2(Gd, Udq) +DEF_TRANSLATE_INSN2(Gd, Wd) +DEF_TRANSLATE_INSN2(Gq, Nq) +DEF_TRANSLATE_INSN2(Gq, Udq) +DEF_TRANSLATE_INSN2(Gq, Wd) +DEF_TRANSLATE_INSN2(Mdq, Vdq) +DEF_TRANSLATE_INSN2(Mq, Pq) +DEF_TRANSLATE_INSN2(Mq, Vdq) +DEF_TRANSLATE_INSN2(Mq, Vq) DEF_TRANSLATE_INSN2(Pq, Ed) DEF_TRANSLATE_INSN2(Pq, Eq) +DEF_TRANSLATE_INSN2(Pq, Nq) DEF_TRANSLATE_INSN2(Pq, Qq) +DEF_TRANSLATE_INSN2(Pq, Wq) DEF_TRANSLATE_INSN2(Qq, Pq) +DEF_TRANSLATE_INSN2(Vd, Ed) +DEF_TRANSLATE_INSN2(Vd, Eq) +DEF_TRANSLATE_INSN2(Vd, Wd) +DEF_TRANSLATE_INSN2(Vdq, Qq) +DEF_TRANSLATE_INSN2(Vdq, Wdq) +DEF_TRANSLATE_INSN2(Wd, Vd) +DEF_TRANSLATE_INSN2(Wdq, Vdq) #define DEF_TRANSLATE_INSN3(opT1, opT2, opT3) \ static void translate_insn3(opT1, opT2, opT3)( \ @@ -5796,9 +5818,16 @@ DEF_TRANSLATE_INSN2(Qq, Pq) } \ } +DEF_TRANSLATE_INSN3(Gd, Nq, Ib) +DEF_TRANSLATE_INSN3(Gq, Nq, Ib) DEF_TRANSLATE_INSN3(Nq, Nq, Ib) DEF_TRANSLATE_INSN3(Pq, Pq, Qd) DEF_TRANSLATE_INSN3(Pq, Pq, Qq) +DEF_TRANSLATE_INSN3(Pq, Qq, Ib) +DEF_TRANSLATE_INSN3(Vd, Vd, Wd) +DEF_TRANSLATE_INSN3(Vdq, Vdq, UdqMhq) +DEF_TRANSLATE_INSN3(Vdq, Vdq, Wdq) +DEF_TRANSLATE_INSN3(Vdq, Vq, Wq) #define DEF_TRANSLATE_INSN4(opT1, opT2, opT3, opT4) \ static void translate_insn4(opT1, opT2, opT3, opT4)( \ @@ -5844,6 +5873,11 @@ DEF_TRANSLATE_INSN3(Pq, Pq, Qq) } \ } +DEF_TRANSLATE_INSN4(Pq, Pq, RdMw, Ib) +DEF_TRANSLATE_INSN4(Vd, Vd, Wd, Ib) +DEF_TRANSLATE_INSN4(Vdq, Vdq, Wd, modrm_mod) +DEF_TRANSLATE_INSN4(Vdq, Vdq, Wdq, Ib) + #define DEF_TRANSLATE_INSN5(opT1, opT2, opT3, opT4, opT5) \ static void translate_insn5(opT1, opT2, opT3, opT4, opT5)( \ CPUX86State *env, DisasContext *s, int modrm, \