From patchwork Sat Mar 23 17:29:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 782045 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp457556wrt; Sat, 23 Mar 2024 10:31:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW8s38oRTTWrmzpqyr87QoklGkri3/S5d4mpLjUbawGgK90CjFlUOw5y5syQoyZWkWjORom0dzu91a29lA+zx2c X-Google-Smtp-Source: AGHT+IHbK/kNEdlGYf0ZezOk1ACQ7lxvcIlT8KpOigS6ARrfWvvFqp1+Ro9pBcQEf1ktrMkdv4rn X-Received: by 2002:a05:6214:5183:b0:696:4ac7:59f1 with SMTP id kl3-20020a056214518300b006964ac759f1mr3124484qvb.1.1711215099892; Sat, 23 Mar 2024 10:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711215099; cv=none; d=google.com; s=arc-20160816; b=tNI4Kjekd1tNY/GswPHLwtVaLiOF/PR1p5h8oq6CCnlNgmF65e0U93MRje6IZcgFTL Hcs3SzMkLflfHNoUvyXCEqSGf+nGe41KxNfcpwBsSkBjEEsoHlryfEU4++iPnzH1QC0C c9G1yeGgqmXX0bru5kK5pKN+O+ZXFTRrrjS01G4AsgFbMRYdbcc/WoNr25+KeowzdyVd Tx/05zAypJikxrEcAJ1OUlXqgXMSxKNxFbKNwi+L9FKZDT00lIeeMaYChOhC4Q1DcomV 5zKAouUoOLiJp2JuhARp7oSYK2oKA0yq3RDRlKr1qPNsIXXp+h6ZIECI5hMvl8P6v4ZD J4lA== 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=tqxxoJyz/Tp0Fx2Av8AP+03UJeuM8REKvV5gu6VjKFY=; fh=odZjvFrgMDmfTa4Yn/jVKLPsclS8EzRuPmYcS/SNwLw=; b=xt1f6lxoMmNyuUdg1CKamI8Wl81NkvEiN8J4LXtwBbhYTdnOXQvXjPvaTa3j53X9r3 lqmHmD+lumGfn2hWDQ3EEF/adTtjYLUNj2a0BcfzCcStzQQ5XA92fMnENf48SmeU2aUb 7oGMprJLK49rDKN9TBuX2LoU1fNMihnX61cxqQwYVusbBtx2vfeGf0yH/zzDwYok8Kjf dt6OaOmzjDB4sS41p5EsdWGjOFPDwv6MrYDMUz8wfBcXANiizvMKgNDw1GUb8GDN0jRF IHH+e93UkZ6+aESyvKY6unveIQN9PapZd1loepLwig6qkjvtk6f9F/J1VlDqbIFyxlok O3sg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=spRDOE1i; 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 gg2-20020a056214252200b006915bf18122si1985810qvb.367.2024.03.23.10.31.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Mar 2024 10:31:39 -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=spRDOE1i; 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 1ro5CA-0002lQ-Rz; Sat, 23 Mar 2024 13:30:14 -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 1ro5C9-0002lH-80 for qemu-devel@nongnu.org; Sat, 23 Mar 2024 13:30:13 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ro5C4-000663-CQ for qemu-devel@nongnu.org; Sat, 23 Mar 2024 13:30:12 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1e07cd7b798so19707435ad.2 for ; Sat, 23 Mar 2024 10:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711215007; x=1711819807; 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=tqxxoJyz/Tp0Fx2Av8AP+03UJeuM8REKvV5gu6VjKFY=; b=spRDOE1iUdXA0sup6cNevxjuWFZWjRIfO0lgMHtk4IiJ0sTEJ1kB2y/vlzgrYYp2TA MX0E7gErMWPVSexk8GR4uKpgzYyRwIWW9WM+ScLGydcDLtuZvyHUyUqRhEI4Yz/PofvJ bbIUL2dXdmgyszbTbCA9ieRV/RiZ3+WSGHyyWbIPhj9pvhMb9ooBALEpu/PkVaNqfAtw AzELcIftKQA1+KSGA4LRisCUfOvX5EDVdlBlOqyXRoiXUkQo5jVVXBnJwDuITYKN5K1G hygUaHSuAo2SjG9gLX3Sz1mkWvp+/D2rY7zbwmRQf6lmrk7vr3x9fT+TJPVPnEQSbDVX WuHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711215007; x=1711819807; 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=tqxxoJyz/Tp0Fx2Av8AP+03UJeuM8REKvV5gu6VjKFY=; b=sL/7FtoAdT83DTXKi2z5Ip3QvznaAIDja04HVY+bLZJLcQMoliqegxPyh1Ev1ykVvu m17CGGGxKahAhuHQeFxiVG43Vs2Lrl59xLqf3OMbNwaR69hcekN3e6NuMNkJ5M5h1hod BsCB4X01NtE3mV33CJAgU0MyLIbTows092za1E1g2zq4tEVvXu4OwyepuHI9jMb6Gzlb 0gQzw/gZNz69Ke+XWWFAOlgBfFEjOEEE+KhTfQp7SrWgA2KVOWP7VoUo2DbK49nFC8AQ xl0z4ZhbpdhXmMKyoq+RQTlRkzoKBnUut1DcSZT3lyuq435+7WpAUjFVRTYP6GO1AS6m c5hw== X-Gm-Message-State: AOJu0YzVLExhS6GxQCd3L2GxrTfQ81wswvHzlQxqG6uLzm6Q266LsglK ovY8VZ3s4lf9Mnuxljbc1kpJXhAxdS4C7PcZAfZgEwYxFgfpHdz0vXNl+K3YKMV02u+6SbTdgBg e X-Received: by 2002:a17:903:40c2:b0:1e0:1174:6360 with SMTP id t2-20020a17090340c200b001e011746360mr3451396pld.14.1711215007005; Sat, 23 Mar 2024 10:30:07 -0700 (PDT) Received: from stoup.. (173-197-098-125.biz.spectrum.com. [173.197.98.125]) by smtp.gmail.com with ESMTPSA id n15-20020a170902d2cf00b001dcfaab3457sm1811758plc.104.2024.03.23.10.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 10:30:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: svens@stackframe.org, deller@gmx.de Subject: [PATCH v2 6/7] target/hppa: Tidy read of interval timer Date: Sat, 23 Mar 2024 07:29:53 -1000 Message-Id: <20240323172954.1041480-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240323172954.1041480-1-richard.henderson@linaro.org> References: <20240323172954.1041480-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.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 The call to gen_helper_read_interval_timer is identical on both sides of the IF. Signed-off-by: Richard Henderson Reviewed-by: Helge Deller Tested-by: Helge Deller --- target/hppa/translate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 8c1a564c5d..5b8c1b06c3 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2082,11 +2082,9 @@ static bool trans_mfctl(DisasContext *ctx, arg_mfctl *a) nullify_over(ctx); tmp = dest_gpr(ctx, rt); if (translator_io_start(&ctx->base)) { - gen_helper_read_interval_timer(tmp); ctx->base.is_jmp = DISAS_IAQ_N_STALE; - } else { - gen_helper_read_interval_timer(tmp); } + gen_helper_read_interval_timer(tmp); save_gpr(ctx, rt, tmp); return nullify_end(ctx); case 26: