From patchwork Mon Sep 9 23:19:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 826651 Delivered-To: patch@linaro.org Received: by 2002:adf:ab1c:0:b0:367:895a:4699 with SMTP id q28csp60667wrc; Mon, 9 Sep 2024 16:19:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV+5Vvaz/TsOGJaiDySvwflwtTlpEo8eiKoXplY1JaIaz48/qOt5sTSinQdaXSHltdcSvdldQ==@linaro.org X-Google-Smtp-Source: AGHT+IGiBNicBKxRP+mlnl+CgJ25v/L2V/E5y2ayiqpW3xT3r/xqB/jRYS+M8w4R/keKX0CduzDm X-Received: by 2002:a05:6214:3b81:b0:6c3:53a9:d610 with SMTP id 6a1803df08f44-6c528508b89mr143597256d6.38.1725923998829; Mon, 09 Sep 2024 16:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725923998; cv=none; d=google.com; s=arc-20240605; b=EDbNjAGg4zgxJxl021q6sWCcxm/fRpnReysh6P+SI7071HAli4Slnk84rFZrQanlKM E22hvkvCR6wiwLXW+qpct1sjt0Znxc9Sd61lM6VzweD13P/y424QVt/wJCGDNpKugAiF O051Ff/1ETLebzvNBkb38wYj1q6eTbnbOetZp//b7Jg+YzSimXToAFZPRcmzfmqL/G+u 8p8M2mTNyfxo0pTYs4h4jQMv8AC2tydwpbU1RVJxOqjYpHfmfTZU66yBWNHbYsw0kZhN EBij1DrbQYbihLUL4YaAjGBkIEkeSQICXuenjY3GhNOuCHePK0B1EGPtW3NW+izwRPpI veJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=M8rojel29tg+5U7aBtc/ocKZdcWEoHiWGG+uedYxRgM=; fh=LMR/z5nc01l//8cK0qbbnKNeXZ+MzD/fNTVa3mh7x6s=; b=ht7zLPLdHmztXfyNZ69EGI28k0ci1NmhqFZgndVa2wKMFbNOE4fKtZRLnQpxSpB3iW WkJc+pNaamNEnI9wuoRw6oFx08v7lEvN622LYirZfEdWGGIAyCRrbRW+REpW1aICIUEQ 4//8JlQ9T3SM9RFoJqNJb2KQ7DZ3x5AU3Jvmhpdd2V/1g169x2ThJ3vCXM+pHCglvAe+ IZcKXrVCHzDAvxxW9OAz/en/qNa/3tSrgDr5Rhrf9BffT80yYpNKgr3hg9qF0AntmeCG dklS8HWWR+YPsAJtgvPGniqDvf9ktCeeVbAknmPAdHbC74r25A4yiiZiGC008Arp8JIO s+nQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y+VuE+Q0; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c5348c91cbsi65303386d6.568.2024.09.09.16.19.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Sep 2024 16:19:58 -0700 (PDT) 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=Y+VuE+Q0; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snnfR-0002ty-FA; Mon, 09 Sep 2024 19:19:33 -0400 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 1snnfP-0002sp-5k for qemu-devel@nongnu.org; Mon, 09 Sep 2024 19:19:31 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snnfN-0005oj-He for qemu-devel@nongnu.org; Mon, 09 Sep 2024 19:19:30 -0400 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2f75428b9f8so38277371fa.3 for ; Mon, 09 Sep 2024 16:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725923967; x=1726528767; darn=nongnu.org; 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=M8rojel29tg+5U7aBtc/ocKZdcWEoHiWGG+uedYxRgM=; b=Y+VuE+Q0ssalsf7LVltWHnbtuA+5WNXs5Fmu0Sth1WdpGEJpqQlqKiO5GfCvBKk2iJ ejIaD2FKsXvOT7E6ZWQYSPhaxOBvlTO4eP30aPptVh+tjn2Re86Z43NkAdXsd0T+CVip ilw1+KHAaDZ6cEOCg4uYaiiP+OMNKaEyHcgrZJQcT+s6Hr1U6QCPBQRyRyz7ZGCTxYAH Yvnm8TW1NO4ek3Vh8nDlCpW0/Tmvo5mvoRUIzKP0kmLw7CCXdSMFWoyfLGX/agD1otOG 8a1h+1cU2J2L7c8ANfWxtcusXGjLy5iVyX3OuFVgGlAii8/JlR8f2SAXoC25awvqM9dz KoLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725923967; x=1726528767; 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=M8rojel29tg+5U7aBtc/ocKZdcWEoHiWGG+uedYxRgM=; b=IpQfR+kmF51oS9y5pWUpQodgPXqQfClBuO7NrPQNPAAYrvMdapH0lPPV+UKqkP8oBc ZEekF+mgl92vM+z3x+Jppksyn+GnYpKZsp5/C9cfw8INnOrwfLlr5oYTKw1SwL97XLhc 18FGFusEvG8tMW5RthxJEMMYaZFBhXv/VlsljShaA5KSrLx0byQQ0Md9OIO5niuvbBID mZjr0i4R5FVFHzl8pBES6Fo5WYZLjEvNsmX5SLBejkcJ7+ONyXp70JXubKNStaBPh+qD VqT4Ox+K2QldxnaKbgmelohWrOz7D1b5OIO+TQXEifh7y3c296orvAvUjtoNc9t+ACX0 S0dw== X-Gm-Message-State: AOJu0YzOXs6dZZIHcEqBldCD2z26QIvq4f18jFUPvTB9aupkHNUvX3Z6 Lmoh6qIvn1EYiVXvjT9bPvCgmes2SrJ91kNGAtWgsQImIVuAmXpXpLFHOVrvzOEHUYFd84cPToP q X-Received: by 2002:a2e:bc1b:0:b0:2f7:562d:cb6c with SMTP id 38308e7fff4ca-2f75a971341mr95792601fa.2.1725923967148; Mon, 09 Sep 2024 16:19:27 -0700 (PDT) Received: from m1x-phil.lan (nsg93-h02-176-184-54-166.dsl.sta.abo.bbox.fr. [176.184.54.166]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d2582d490sm406252366b.14.2024.09.09.16.19.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Sep 2024 16:19:26 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: David Hildenbrand , qemu-s390x@nongnu.org, Thomas Huth , Ilya Leoshkevich , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH v2 06/10 3/4] target/s390x: Use deposit to set ilen in save_link_info Date: Tue, 10 Sep 2024 01:19:09 +0200 Message-ID: <20240909231910.14428-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605215739.4758-7-richard.henderson@linaro.org> References: <20240605215739.4758-7-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=philmd@linaro.org; helo=mail-lj1-x235.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 From: Richard Henderson Signed-off-by: Richard Henderson Message-ID: <20240605215739.4758-7-richard.henderson@linaro.org> [PMD: Split patch, part 3/4] Signed-off-by: Philippe Mathieu-Daudé --- target/s390x/tcg/translate.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 53ec817e29..bfb7662329 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -1429,17 +1429,19 @@ static void save_link_info(DisasContext *s, DisasOps *o) t1 = tcg_temp_new_i64(); t2 = tcg_temp_new_i64(); - tcg_gen_andi_i64(o->out, o->out, 0xffffffff00000000ull); - /* Shift program mask into place, garbage outside of [27:24]. */ tcg_gen_shri_i64(t1, psw_mask, 16); /* Deposit pc to replace garbage bits below program mask. */ gen_psw_addr_disp(s, t2, s->ilen); tcg_gen_deposit_i64(o->out, t1, t2, 0, 24); - tcg_gen_ori_i64(o->out, o->out, (s->ilen / 2) << 30); tcg_gen_extu_i32_i64(t2, cc_op); tcg_gen_shli_i64(t2, t2, 28); tcg_gen_or_i64(o->out, o->out, t2); + + /* Install ilen. */ + tcg_gen_ori_i64(t1, t1, (s->ilen / 2) << 30); + + tcg_gen_deposit_i64(o->out, o->out, t1, 0, 32); } static DisasJumpType op_bal(DisasContext *s, DisasOps *o)