From patchwork Mon Feb 20 18:40:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 655115 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcd:0:0:0:0:0 with SMTP id e13csp1552043wrc; Mon, 20 Feb 2023 10:44:25 -0800 (PST) X-Google-Smtp-Source: AK7set8f+hZpb34/D4utWBAElpy2xBc0ybLIehxTSdORFG9rScaNNDh5bk6jg2SAJ14/50tEHott X-Received: by 2002:a05:6214:411a:b0:56c:1b8e:826e with SMTP id kc26-20020a056214411a00b0056c1b8e826emr6452389qvb.15.1676918665617; Mon, 20 Feb 2023 10:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676918665; cv=none; d=google.com; s=arc-20160816; b=p3qjbdX2qr/DJXKHegHlXTrypiz+D1GBhGZa1D0GPHoBWDU3pJ6hEOFE0gyxXS6TBK LBS/qltKxMK869lkGfspUmmV8HK+l32xy8CXjiLc0NsKlKDYN+z2htgqv5lxZDFhjKt+ LfTpFlxoBJf6q5Xrb0pzb/NEBrS12KiIrfAfa2c2oXnF4q340H3ohddfru1f5mY8p7TK a0odwCYGA1xvTS5fIeZOzhbwdrFq91nD5irZSqDPOlQ6HeuC2S2NgSN10ZNp81b/STIP nqdvgNaVG1N3GyjGGNrEK91Cq+Mm+rB5XBa4EAjp/GsKJ8FdNpHlmOnYtoLP+rGM8A2q XFzQ== 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=xjdX+3lrfnqV9nfR+Pm6BiLQ9pXwmV/7HhcoJgl+TnA=; b=iKWKiFl3Mo0YVqSndu/AT7Bl2x2IW8CM7gc0plr2YbQop/2U0GrvGQQ0XV8Gi+nz5K leeCnz0cRwIJgzLfwriurzehn9sUYYS7HiSTow5mSUKRFmXfMstCf6OQVcR2V+wff/rR aCfXuo3cVjOTW4Flj1NyZiQwiPVKzZVIY96x+fYJDkgtAbPNJ6JQp64zJt99L+fjKOYZ a6qYIgaQBeGTcWLSoE4orUN8K/UjxU4SqAmlesYPVmwuSyyGdP2LeEufxUur45AKu+Xk xJ8IGtA6cZOiKn1uek3TQfjiURN0e2n/IWa2sdwj4j4GTkRVw/WipL22Vi0kymWAdoWK Blqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGPV7WPR; 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 p9-20020a0cf549000000b0056ef8dad683si785390qvm.290.2023.02.20.10.44.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Feb 2023 10:44:25 -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=YGPV7WPR; 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 1pUB86-0005g9-Ix; Mon, 20 Feb 2023 13:43:14 -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 1pUB6Q-0004XH-3c for qemu-devel@nongnu.org; Mon, 20 Feb 2023 13:41:31 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUB6K-00047J-Vn for qemu-devel@nongnu.org; Mon, 20 Feb 2023 13:41:28 -0500 Received: by mail-pj1-x1035.google.com with SMTP id x20-20020a17090a8a9400b00233ba727724so1484924pjn.1 for ; Mon, 20 Feb 2023 10:41:17 -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=xjdX+3lrfnqV9nfR+Pm6BiLQ9pXwmV/7HhcoJgl+TnA=; b=YGPV7WPRywDeg0YHkGJwXip2G/kF6HG/ehqAG3NfgAbJFJnkuxGm1kMZFvf2cHn+3Y lTbac6EjHyd1nq/++/V4Y5t05YQhhAXRAHmbDKyd2hKfked7n1ErfEXwxXjlYe9PtY9r 0I77zsCTktddQkcfnavmvNe3vmFMVxIK39w+Gs6dlgMOIbO80NVfY7xfZWsydrafOOBV O9wmJwFgQQgo0hl3D4143qGCvI64AOTuSY39DQZhKRjU2nd0Cnfd2vmL0h0044AcEQAt 9Ue5ceUc8jxPeJ+5uF5NUbcYLaLKvmRjGqMWpCMxyYmhXCRluz6HfP8LojrlloJLqjn9 pIUA== 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=xjdX+3lrfnqV9nfR+Pm6BiLQ9pXwmV/7HhcoJgl+TnA=; b=q8nD9SBaG/SncFbkJoVZ8OUbCdltTLFFf81DbWOwOJm16b55TYj69JhxSvLwjaeYMH 3XkIY7HBxVrk8Y9FrxwCbUaPdCdCsr6xadND9pi5g3oXJzS0OBt55PZEQ017g9GZsm9y 6Js+Eh4S9X5wh79TTrPpeCCW+GVxEtfp5QeJuej92NLwjlKOaY0KZz5XZkiocw8l3H5n b1izqa/AyGOOGEwoAWC4NCAmo55Dp+AbqeK9pOUe0cy6iJqBYl+xdHPptwVQUyjmKULh IQo4ysEp08syuFZ++Yj5ZJ1N4TraFpRmmr3tb/2OlHe8Ivs8S8B6TzqBUKmzuSzbSfcA zLuQ== X-Gm-Message-State: AO0yUKUeOrigj3qS7mGrzeziJoXN/WgDBYRBD/jplJR47+NJHoJLA890 QEnNN1RidC3OdlvtMNU5r75/p/oHTN1FRmH5/J8= X-Received: by 2002:a17:902:e5c9:b0:199:5208:44de with SMTP id u9-20020a170902e5c900b00199520844demr3605448plf.21.1676918476663; Mon, 20 Feb 2023 10:41:16 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id jk20-20020a170903331400b0019258bcf3ffsm1911676plb.56.2023.02.20.10.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 10:41:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: thuth@redhat.com, qemu-s390x@nongnu.org, Ilya Leoshkevich , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v4 11/27] target/s390x: Use gen_psw_addr_disp in save_link_info Date: Mon, 20 Feb 2023 08:40:36 -1000 Message-Id: <20230220184052.163465-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230220184052.163465-1-richard.henderson@linaro.org> References: <20230220184052.163465-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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=ham 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 027a5b0673..9e60abe97d 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -1573,9 +1573,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);