From patchwork Fri Mar 29 22:30:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 784095 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp3429095wrt; Fri, 29 Mar 2024 15:32:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWpkF4A8zs7b6JaUzMwBtTo+xoNXlWS1qr5cfuhsLGrklqDS74FqMoU3Bnh8mA5/2cVSkLpg6HsBrdCNabRUMZg X-Google-Smtp-Source: AGHT+IF/3EAEnXu2Dx+NHsQw4HM2j9D6Nq2oFOYGilfI0j+yTn1zL13FYbPS0abgAhJzhsd5/tj9 X-Received: by 2002:a05:6214:1784:b0:698:f999:1c18 with SMTP id ct4-20020a056214178400b00698f9991c18mr203121qvb.55.1711751568712; Fri, 29 Mar 2024 15:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711751568; cv=none; d=google.com; s=arc-20160816; b=lgEV1Fu/7GzsfpvQuA8WPNpo3p7/bde/ScF9HTzYPu+IjtCr1w8hIZPnYBzEGVjmBh Ep5Ja1r9EIMkE6LQ1S8xCdgzLl+flThUQ0BsiTp7YF5QSjsQ/U6HWA5/JftGN825HuSH j33GqaKcF1PXtnmhl/BQ7ZR3FslrbzXr+8OLkK1mtYJMDkw26dbJG6rh4sW5qfpZ2sQw ka6JBhCKWRlP/eIM+i89+1JCH0mP1Yfuq3HeBfDcp7RxAj/JaFIbqljOrgA8mXT0WaIO 2SnCYR1StoL1ynVdXvZpt/If4v2JcM+Njm46gYjjO7yLbGLL3qxIHj5wEwD9hI7KuOaJ i5QA== 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=rTAbsZOgycJ6347QzcFwwaG8+pgXG7uj80wvUu+rRqA=; fh=wDljmxUHXfz9MGj2//jPHYRc53BMWF157v8rVKELrf4=; b=YsPNmlMj7r8tKuYHEL/Zh7uiypd/u8skuTXcajcYJ1nyXm1keW7sIg8VuGKT5fil9X gVpQNwVD9SmwhhjE1wwXnlkHPteSrNs+Grr2G/iLiHuGv1NqishKvmHFhJYyyvlbv0C9 CVH/adQonMhIwmVBITsbww718381YGhjzH3eDgYmPwF5H139YgitPpwP382l/Km8UaB8 At10gfEimug7BrNLZzR9ZbAcNmhog6fUqMe3IPoAagkVj/TfIZO1s4Ad0zAZIeiMU9oa f8WVODsYVgbPWbTz+GLu71IcEMcJPSC+oyOVyGXWg+cWFZbDM/p1vYsCON8sbnlxVUsV eHJw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mhaiQmMI; 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 d17-20020a0cdb11000000b006903c85415dsi4567076qvk.126.2024.03.29.15.32.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2024 15:32:48 -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=mhaiQmMI; 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 1rqKlG-0002bI-0P; Fri, 29 Mar 2024 18:31:46 -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 1rqKkw-0002X0-ET for qemu-devel@nongnu.org; Fri, 29 Mar 2024 18:31:26 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqKku-0003Va-Ey for qemu-devel@nongnu.org; Fri, 29 Mar 2024 18:31:26 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1e0fa980d55so20854405ad.3 for ; Fri, 29 Mar 2024 15:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711751483; x=1712356283; 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=rTAbsZOgycJ6347QzcFwwaG8+pgXG7uj80wvUu+rRqA=; b=mhaiQmMI0Ot0cDeEYTl33jugXqoui9H+0aq/0IljP54efufFGzv9EMu26uGOarG18/ V/tq7dtq2N6EBM7BskpdocEl7krlM1cAfSJzgfl8CoaDOGgeHD0KCZ403lbgIxgNRvjV J8n8uVd/ZDzgphOtiJnZHTnnZDcPlhf+zAaTOqk+HzLCLybG1jpR2aYPXer7n7+fs/CJ 7A5yxmooZHBimK+8KCWiJ3OkkEvXbljDVgQPM8ATQ3bTqlqtiCT37dfXWF94U6iz9xBy 6Xd+oVwZT+aSR+UrnudSpZ55PcwQQnpYYquRIJFmUdruC+8uxi/DA6sVru8gOktZhbV3 FjDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711751483; x=1712356283; 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=rTAbsZOgycJ6347QzcFwwaG8+pgXG7uj80wvUu+rRqA=; b=MQlv1mAubfVrkcB1xCzc0HYr94YC0fp0GwkNWKNjUXhUsavW6RILNBlyCizHwCohPV Adp6CbbdEX4GF7I13JasX3z2/iEQ1Zf5w22vAIL7QIvtaDJvAP5xpHdUf+Ccvr/Y3d8U 43gA0XC8uJkIA1CykNpPRPEvkWlsZaGGX3OIPFF4VuFWW/inRVFD0xv6tJVjSZdkUM0F srJ7Q08bzEd/jLuW+oALY8rQAoSCAdtyLPf4no3kcNH697TdHdeH31BvmVSKw7xQaN/g TYF9MWZ2Sj+1kjMvtFtDHJU0c6K6Z+q9s8tS6+Rz9tRuaa1/YJT4DDHueASJ5TMeVvjJ gCBA== X-Gm-Message-State: AOJu0YyTmIbwFnklRq6xoGk85EQNRRa/p6Rr7o2rEGTxN+2W6Vcw94XB FgCSeM4WCXFynojPDy8q4gyyK7wyns3s+NbTgy2aEsKKhmEPbFGn1GeZkKYAWBXncTrTdgm1U1T d X-Received: by 2002:a17:902:c406:b0:1de:eac5:9294 with SMTP id k6-20020a170902c40600b001deeac59294mr4119264plk.13.1711751483094; Fri, 29 Mar 2024 15:31:23 -0700 (PDT) Received: from stoup.. (098-147-007-212.res.spectrum.com. [98.147.7.212]) by smtp.gmail.com with ESMTPSA id f8-20020a170902684800b001e09b636cafsm4000955pln.287.2024.03.29.15.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 15:31:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller Subject: [PULL 06/18] target/hppa: Tidy read of interval timer Date: Fri, 29 Mar 2024 12:30:59 -1000 Message-Id: <20240329223111.1735826-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240329223111.1735826-1-richard.henderson@linaro.org> References: <20240329223111.1735826-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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. Reviewed-by: Helge Deller Tested-by: Helge Deller Signed-off-by: Richard Henderson --- 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: