From patchwork Mon Jan 9 20:08:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 640678 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp2336714pvb; Mon, 9 Jan 2023 12:14:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXu8pGubcs++iSrzDTf3N9GTFTxgoxhhoyVfJwqok2ZMecKHJWwsiXKQDdy4U/miKSdTh/3K X-Received: by 2002:ac8:65d6:0:b0:3a9:691e:8dc6 with SMTP id t22-20020ac865d6000000b003a9691e8dc6mr94393001qto.47.1673295293562; Mon, 09 Jan 2023 12:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673295293; cv=none; d=google.com; s=arc-20160816; b=MWBKpEdlc0FkdgAd8CZQH7ebhigZGnLxpA1dmg8XYXHGuTnNWn90Z9uVvQ8q92gC7j e38w4oisLMJ4xvG6fNLZS3vIC6/fRF/fd42qel0BciHZhw9EByCvPmLl+P9aee3Uj2xN lLGI7OIY819pJ086r5nNR76lUjmMRnoOOu9F3bdJltmAxciM0U9G4EuwplAdATuDbHAP iqkkB7ZKbcXn4V8o9p4A3zgPVHDdnpmoJ+012VkWxyiyOWkCpqV3vhYGpxSrGUEhCWVt ac2WfCfgBjPmXnrMT7z22BVKsbuRT//c4EldPbG6epcP2rGu58KgytADUh4ybIAriHcd p62Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rzW2RGRVBHiiLOC7jWYoqfyrR/GmVs5nUcJKMJ/tfDc=; b=Fr4UOKWnqAG3HNT2LJrAxjQPDHl9lpQRBGVqibhnBcXf2WIsDlhX2N/DAoXpGYJiBb uxH5Etkqy/ainGSZ+RHpt92Mbeqd6BFDBc+TT+OLBNubN/be9JdqlqwcnpQcn0uMYCsL g48nElwokV5KQMmBZPz7iyXiUPUDtCtMlICVBNMUUtS5DRn77ZJ9r/X+d/f5srX/b3jD HvgVO4l89YPU2wGvI+gAuQdUjSal5PyJ48XZzJqZRBKexG5bOrd9xTflEi2aXkxpzX0l 1O0MIfz2DP6F+6VH4IamvvUjWbwBThe3P720IymzAsP9e6V1dzBnLV35wqX93lT8gRhM Q8Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nVRKJ0QD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j5-20020ac84405000000b0039cd4ff1224si670594qtn.683.2023.01.09.12.14.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jan 2023 12:14:53 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nVRKJ0QD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEyRj-00030i-Dq; Mon, 09 Jan 2023 15:08:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEyRh-0002xd-J3 for qemu-devel@nongnu.org; Mon, 09 Jan 2023 15:08:37 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEyRg-0007VR-22 for qemu-devel@nongnu.org; Mon, 09 Jan 2023 15:08:37 -0500 Received: by mail-pj1-x102d.google.com with SMTP id o8-20020a17090a9f8800b00223de0364beso13959791pjp.4 for ; Mon, 09 Jan 2023 12:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rzW2RGRVBHiiLOC7jWYoqfyrR/GmVs5nUcJKMJ/tfDc=; b=nVRKJ0QDgC9RmCKG1F19fKOj7SNsHPPdFve+fwrjiK7PWFZJVop6d2eiy34K2PEBdg KY1b/JRVboTU0x0Vgt1D1NhHPug19nrjjGKsZIT1L6xetnptyCKiVWFKCflInHPcv4v5 smBFyWdJ4MGQKPxI2BxtDGElGf0zGGqtVEf+O7ehWA6MViy+RjGygkQVx/Znb7rTEePe JdF6jP6i3hv0HYdk6FkdmmWF1RR3Yx8FdLL+pciKoPeqEGTxG6Pxoc+LLjZGMhDzvi4B 2YQumVHK/yHTxIZd+H9AsANkBv84NFvrhNBqADco+KHRmBgEOALlMLhrAgCCj3Ze8yJg QiMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rzW2RGRVBHiiLOC7jWYoqfyrR/GmVs5nUcJKMJ/tfDc=; b=NijRxmVk3Ho2oURsm/f00K4alI9rf2EIDWYNTibXiLEUw+azl0MRb7H+pmvXAF1nlb VEi60e1GhKOtOw/VSslzlyqMLPlpe3s4P+IsbgJe0QInwgcOZA8sY4lSBzC/zBSQ375+ ojEhY8mjXs0R/x8Lr492tMpuFs21lZBrfDT5Atz12T6sqKJVA5ku4r36raS0w7PHV7J5 Ao7JjR1aAWdGlNH7L3L1hlvzMbKNZ5Ve8niR79ja1y8DfmgQw1aF9qhicY4C6Q4Vtvn7 CvCzLJxoJI3zu4ef2SafPBsZXgHapd5reMgiGNRx80h4Og8D/pjyZkux/Tf4Mpr9+9Iv 8i9w== X-Gm-Message-State: AFqh2krVLip+r14yc31Nplbj07lT0yf1XMI4JVTS1HO6h3Vkgro1Nrnw HlPE4FyZKgMFjRAdxePMyKFeEOgjxpx6xRfG X-Received: by 2002:a17:90a:fe89:b0:226:e59a:f869 with SMTP id co9-20020a17090afe8900b00226e59af869mr12647242pjb.43.1673294914116; Mon, 09 Jan 2023 12:08:34 -0800 (PST) Received: from stoup.. ([2602:47:d48c:8101:158e:facf:7a46:ba9f]) by smtp.gmail.com with ESMTPSA id l2-20020a17090a384200b0022727d4af8dsm577574pjf.48.2023.01.09.12.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 12:08:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, Ilya Leoshkevich , =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 11/27] target/s390x: Use gen_psw_addr_disp in save_link_info Date: Mon, 9 Jan 2023 12:08:03 -0800 Message-Id: <20230109200819.3916395-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230109200819.3916395-1-richard.henderson@linaro.org> References: <20230109200819.3916395-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Trivial but non-mechanical conversion away from pc_tmp. Reviewed-by: Ilya Leoshkevich Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/s390x/tcg/translate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 05a11df00e..001cfa9162 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -1558,9 +1558,11 @@ static void save_link_info(DisasContext *s, DisasOps *o) return; } gen_op_calc_cc(s); - tcg_gen_andi_i64(o->out, o->out, 0xffffffff00000000ull); - tcg_gen_ori_i64(o->out, o->out, ((s->ilen / 2) << 30) | s->pc_tmp); t = tcg_temp_new_i64(); + tcg_gen_andi_i64(o->out, o->out, 0xffffffff00000000ull); + gen_psw_addr_disp(s, t, s->ilen); + tcg_gen_or_i64(o->out, o->out, t); + tcg_gen_ori_i64(o->out, o->out, (s->ilen / 2) << 30); tcg_gen_shri_i64(t, psw_mask, 16); tcg_gen_andi_i64(t, t, 0x0f000000); tcg_gen_or_i64(o->out, o->out, t);