From patchwork Thu Apr 21 17:31:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 564420 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp655711map; Thu, 21 Apr 2022 10:59:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyLIk46+yVOKy4k6Bd9fbJH7vuSRKdtQfr1TTBNE6lHxeo6ITZ/GxLqOeAyBH7k2A5X2Yx X-Received: by 2002:a25:1583:0:b0:641:183a:3c30 with SMTP id 125-20020a251583000000b00641183a3c30mr888133ybv.471.1650563983919; Thu, 21 Apr 2022 10:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650563983; cv=none; d=google.com; s=arc-20160816; b=1LDw3Pzr20+CfENXkNSFgrSi/nExrP0u5iXyx9VcLQG1lMphkhhhwW66LxnitwqGmF Q6yd/qwZ/6QJX/pyMry3N4dC6OkDO7URtuoaL/FXkhv/9Y3pbnJT0hM+v8EHw2F1WWcJ oOVPy1abk2Wo21LvGe4iXYheY+Ufvs3x5KDzJzUmvsU8REyKo5y6zMjMmlBrufC53Wgt FnyFBSgC9Rt3/88oSfjT10jhtE7/kUY612Jaobzh6WgxfyrQlHovhSvebOP3vw1qcuPS LBjfAq2ARsdHq3SmqGsF3WGZG9n+1K4qmWsrNs97SAq5/zM9Az533vsErYCi26+cWv0l +8eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=vnUo923wbj7XIwCBnfHZzIv0sYzZ9mMty9XfzDgDwDE=; b=hZlyDK2T2pUGLb6SbrU4YQGILrUIO0BFKAHuXkSM7tIXyG1uwrPf0my0bVEwg+z1BU zunp0Pf/U5wnCpSL4ybGl28pQurI9AWRxKHhAMGlJSOvB/aMs7wvFSjcZOvNFZ6imHxc bI5cVZnIFVQDoiB3YAfDcDWXRpO+LLkLrj7IT7PvOicJObLZRE8EBmWj+Ld14TjsiDqb qzPq15r8/2VqraIxpxGK8ynNQjLawqBHZqYJIjmfm4YIK/iXCKAAW64eDvX0lg0BVUwT fu1zMc3yMFbD6h0U3OwkVeKeM1PqI1ASJrc3kfeODUgfwyuzR5TUq1p9V6R2GlqeVf8A A1/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SM0tk9g1; 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 192-20020a250cc9000000b006416bbbb8e2si2749473ybm.378.2022.04.21.10.59.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Apr 2022 10:59:43 -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=SM0tk9g1; 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]:35662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhb5j-0000iZ-FW for patch@linaro.org; Thu, 21 Apr 2022 13:59:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhaeW-0000bg-2D for qemu-devel@nongnu.org; Thu, 21 Apr 2022 13:31:36 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:37630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhaeT-0002wY-J3 for qemu-devel@nongnu.org; Thu, 21 Apr 2022 13:31:34 -0400 Received: by mail-pg1-x532.google.com with SMTP id x191so5230369pgd.4 for ; Thu, 21 Apr 2022 10:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vnUo923wbj7XIwCBnfHZzIv0sYzZ9mMty9XfzDgDwDE=; b=SM0tk9g109NEjtSm1262CvfGApP6QN8vvvnMiOVWXF/HFV9n5kurgBiCLoLQP9GXtQ j84an5TbQjIWvpU7ClsrWUg7wTPYTVt0sIisYUYNh0PUUowndi6maef7yTfwW6+gCUlV 4KJHpDj26L/DCsVWp0t3BR0O0MrtX7o094Ut5v2aSvDubmzsNy4s1k0QWYrH02RUXWOK 7NIOkYJyy/eUNVmkkHRez3rxpD2MCk3vlyGpWNrOWyJjZ3earTvbeAJG7uQdosk0FQ7Y 4u5SFCOWHpX7cLCbAmxxb0nfCiMJH0Q2oi0KlkoYlzm0Z289/A/z6QG8fv6Ge9alRbcu HgIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vnUo923wbj7XIwCBnfHZzIv0sYzZ9mMty9XfzDgDwDE=; b=IZCu7/MfHU08t3pyAWqRQrFIdeH69jLRx9jO5nXaxCmtxroM6mhmWvpNAQkv/5vTSe O9XOX5k22bz5IjHOdEVg7nzjlvHwTs6DEXT/yBIZCoXAMnaWIq34h0WYlCAFYi/Wcwbt QvEu5d4Ymjsp6lidfHsH02jwHM5f5dI6Y76DbgGaKCv+D89VRVNfyQnH/ljBEkEx6Aeh 3/wQbtml9UtR0KpRE3zAjIbgpSqybzVzEPOgYZNa+Fs3t3YSTbt+vaSvEIONLZGA68zL cquI5bRrjFKOgTHvjWOcCr8hzTcbrA12xsKoC8GOipBZOQanagucp662l0OXDWxUxzxi kbkw== X-Gm-Message-State: AOAM532UMEQxiMP4DzQN9BTYOeSoR5WjSIfqVChlgE23dd9Dg+EW4ZQW 2BfSWetvWNT6Yg5gLPRlocFRlcFFCVQgMRJe X-Received: by 2002:a63:40c6:0:b0:39d:9463:94ac with SMTP id n189-20020a6340c6000000b0039d946394acmr411018pga.289.1650562290321; Thu, 21 Apr 2022 10:31:30 -0700 (PDT) Received: from stoup.. ([2607:fb90:80c1:f8a5:3d1f:84a9:7713:bf09]) by smtp.gmail.com with ESMTPSA id 204-20020a6302d5000000b00385f29b02b2sm23557644pgc.50.2022.04.21.10.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 10:31:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 6/7] target/rx: set PSW.I when executing wait instruction Date: Thu, 21 Apr 2022 10:31:13 -0700 Message-Id: <20220421173114.48357-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220421173114.48357-1-richard.henderson@linaro.org> References: <20220421173114.48357-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.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, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: Tomoaki Kawada , Yoshinori Sato Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Tomoaki Kawada This patch fixes the implementation of the wait instruction to implicitly update PSW.I as required by the ISA specification. Signed-off-by: Tomoaki Kawada Reviewed-by: Yoshinori Sato Reviewed-by: Richard Henderson Message-Id: <20220417045937.2128699-1-i@yvt.jp> Signed-off-by: Richard Henderson --- target/rx/op_helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/rx/op_helper.c b/target/rx/op_helper.c index 11f952d340..81645adde3 100644 --- a/target/rx/op_helper.c +++ b/target/rx/op_helper.c @@ -448,6 +448,7 @@ void QEMU_NORETURN helper_wait(CPURXState *env) cs->halted = 1; env->in_sleep = 1; + env->psw_i = 1; raise_exception(env, EXCP_HLT, 0); }