From patchwork Thu Aug 15 02:08:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Bobek X-Patchwork-Id: 11094885 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2EE1B6C5 for ; Thu, 15 Aug 2019 02:21:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FAC028498 for ; Thu, 15 Aug 2019 02:21:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 126F628741; Thu, 15 Aug 2019 02:21:04 +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=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0549C28498 for ; Thu, 15 Aug 2019 02:21:03 +0000 (UTC) Received: from localhost ([::1]:37440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy5Nt-0002SA-Nz for patchwork-qemu-devel@patchwork.kernel.org; Wed, 14 Aug 2019 22:21:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46705) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy5DK-00061S-JC for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:10:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hy5DJ-0008JA-F3 for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:10:06 -0400 Received: from mail-yb1-xb44.google.com ([2607:f8b0:4864:20::b44]:34784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hy5DJ-0008Ir-Av for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:10:05 -0400 Received: by mail-yb1-xb44.google.com with SMTP id q5so410892ybp.1 for ; Wed, 14 Aug 2019 19:10:05 -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=cyegfqQ66vBczNAfRKb53VrlCHN8G52UPrZRGksak8s=; b=Ax3FMlcQ3g0lEpaB+kMd1sXkssslXecIEK/Oe99/4mQT77YFSXD7GVRRIIFWheSgfX Pw/A08TGyRJybPRWGQzx1KbUohOeRZlbA134gJFLa5+s81KNltYgBIgaH5vaH459aykm MpiFaCNXoqlKSAEaAufif7sdsGJAIXiSpRG+IhJx2w4fIBqPrnQ1DFwbyMEue3f7GtDq PxyywUgzHo5C7s24U5Hulj1Q/gThyIIWz221OtMkq9sK8gBCx9w1+e3pse+VYLhh/j5C u6LqTtaLfbytgbzf+8d92WtmnyQEE5Gpyfl4hwVxaAkT3bEXo2Wz1FwgO3R2y9Jdg+sh qG6A== 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=cyegfqQ66vBczNAfRKb53VrlCHN8G52UPrZRGksak8s=; b=p8zhQnom/PbHcqiQrXMzzgjxAW4PE/KeC546C2JApf3E7eaBRwAgip+BnsmlTWnAQ2 EeJoopqxzkusdPlR7Jwb7g9+fk+ay2bI8clV6jS4+9fYsBxmTMBYsnwKIgrUy5su2U7c YobSQZGjKUJiXfI5cgS5TPzm2UKQ4b9Ux9QHJFXke12jJprFb4MyUSLYD8wKRQdeVZC7 zgo8Nrk93Cno2ZwV2AC25BgdzAa3jQ8sXtgSVGY8TlL/d9oPE0n6e5uWQ0GqMnaCN1li 81fNiYdaOi/FE1wM06VACPFEHRGqtDy50VVwKwuhcLO/hDtCGQ/a/Pqnj0BjtPVDBm8f QcuQ== X-Gm-Message-State: APjAAAXsuMdgnznzg0g6q2dFRyCcBitkYhoIEZVlzAtdeWPw6cTcm1la JaOfhTuZiRNfAcj9UB++2YaUzSy5 X-Google-Smtp-Source: APXvYqxdcei3XxSvO+ysY7mDmf+cycYP+OEY0v6vvLfK/C9RDhHYbwGYWDB+56lj149TXvrFQN0x1Q== X-Received: by 2002:a25:8285:: with SMTP id r5mr1886591ybk.268.1565835004638; Wed, 14 Aug 2019 19:10:04 -0700 (PDT) Received: from dionysus.attlocal.net ([2601:c0:c67f:e390:8a9a:e33f:caf8:f018]) by smtp.gmail.com with ESMTPSA id j3sm374882ywk.21.2019.08.14.19.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 19:10:03 -0700 (PDT) From: Jan Bobek To: qemu-devel@nongnu.org Date: Wed, 14 Aug 2019 22:08:53 -0400 Message-Id: <20190815020928.9679-12-jan.bobek@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190815020928.9679-1-jan.bobek@gmail.com> References: <20190815020928.9679-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::b44 Subject: [Qemu-devel] [RFC PATCH v3 11/46] target/i386: introduce gen_(ld, st)d_env_A0 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" X-Virus-Scanned: ClamAV using ClamSMTP Similar in spirit to the already present gen_(ld,st)(q,o)_env_A0, it will prove useful in later commits for smaller-sized vector loads. Reviewed-by: Richard Henderson Signed-off-by: Jan Bobek --- target/i386/translate.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/target/i386/translate.c b/target/i386/translate.c index c5ec309fe2..258351fce3 100644 --- a/target/i386/translate.c +++ b/target/i386/translate.c @@ -2652,6 +2652,18 @@ static void gen_jmp(DisasContext *s, target_ulong eip) gen_jmp_tb(s, eip, 0); } +static inline void gen_ldd_env_A0(DisasContext *s, int offset) +{ + tcg_gen_qemu_ld_i32(s->tmp2_i32, s->A0, s->mem_index, MO_LEUL); + tcg_gen_st_i32(s->tmp2_i32, cpu_env, offset); +} + +static inline void gen_std_env_A0(DisasContext *s, int offset) +{ + tcg_gen_ld_i32(s->tmp2_i32, cpu_env, offset); + tcg_gen_qemu_st_i32(s->tmp2_i32, s->A0, s->mem_index, MO_LEUL); +} + static inline void gen_ldq_env_A0(DisasContext *s, int offset) { tcg_gen_qemu_ld_i64(s->tmp1_i64, s->A0, s->mem_index, MO_LEQ);