From nobody Wed Dec 17 05:58:19 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1565835698; cv=none; d=zoho.com; s=zohoarc; b=Lg3z0L04v48OQQI6egY7Ys+U2pPbc5eslTdEvRDorDEtPYJvBg44Nu4fcA4tRi7TlSooG7C4GsaYIp39r0y0i33GvxJLbAAEbttjAVL9MecAeSwFDHwmDS2AgZy8K7n4Km7D7KONR0bf6mM4z4IlEgXouiebC6yEJ18W2af1Qp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565835698; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=cyegfqQ66vBczNAfRKb53VrlCHN8G52UPrZRGksak8s=; b=B7T7YQ1+6IBpLh8ejCRXg9LwW2iCNEupSoPGTxaeIs2aZAoIgUDayIZud7lQ5VRtupvVS2UZcaCbqQM0ISmW3JLG9lOh8OAvbTb7ZLqhLGtgAykaCl4JFm1qm9Gd8EhoRBq/bBc09S/Ut1YKtP/hyjYG/UuA2rih79xvOLRqr70= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565835698964548.5440262176503; Wed, 14 Aug 2019 19:21:38 -0700 (PDT) Received: from localhost ([::1]:37440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy5OT-0002SA-4D for importer@patchew.org; Wed, 14 Aug 2019 22:21:37 -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) 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) 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) 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 Content-Transfer-Encoding: quoted-printable 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=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" 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 ei= p) gen_jmp_tb(s, eip, 0); } =20 +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); --=20 2.20.1