From nobody Sun May 12 22:07:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) client-ip=209.85.128.51; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f51.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1627553599; cv=none; d=zohomail.com; s=zohoarc; b=QCKz1nK4FRAUIYyGXC3StvDrCRSW5Vw1lGPNQXkxz0Pjx/8AMBHj0z89x0AAJooqXpshE/FM4+0J0QnJkRFlPuArYJ0atiiwzUpWCEAg3RQjC7s9UECwhaidMyFAf+cwpWeOlcQITgQau4zt/NmNaepZ2xWFnD1XpUmCZff+/cw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1627553599; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Sender:Subject:To; bh=7kXTJJbf5BiRHd7aGvyKgCIcgX8lAsnAcwSZ9DrqAKg=; b=ewiMmMvsx1CJoZuo8f3SzZgemSyLnA9Z1LMxqdFfxH8mu7pHr7OvvLqn85WqfYuDRcwZkoO3txq/ma7Mzqf79jeodUR0MOQfOizrdwHZr3ffkkvS6w2PmVPFk24nKtLXn6lWX2RsJZffy54kqHUXSeZM/53J4OxeP5rP2JygZxY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.zohomail.com with SMTPS id 1627553599029888.6005327353055; Thu, 29 Jul 2021 03:13:19 -0700 (PDT) Received: by mail-wm1-f51.google.com with SMTP id l11-20020a7bcf0b0000b0290253545c2997so3634564wmg.4 for ; Thu, 29 Jul 2021 03:13:18 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (122.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.122]) by smtp.gmail.com with ESMTPSA id f7sm3512506wrr.54.2021.07.29.03.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 03:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7kXTJJbf5BiRHd7aGvyKgCIcgX8lAsnAcwSZ9DrqAKg=; b=rKiwSESVurxVOuY4UYVrrxg7e7h/XM9oOrsHewCusi0LbndQmZT3KsnoyLq6pQaHTM 2Xtb7fsYsElA5oZPSJ2HeohRne0caduV+5K1TH9fe7fMcPm4c8FuYbUqW7SOJzXiZMxI FsUgzYuZdMIIBbaJCzLdGqtrqxzj3GedrQ11BJV2Cb/87xzqThtD5ozP1xz3DlssUOuX aKP7YEYmR6X2WomMDmBfHguPTgUpMoxwBsPTZyCCa3cZ7j4i2W3sSSjnGdAnnQO1tLZJ QVE1NvwCdP7gdm3WWDdkMfLw56/PjQyiaqiQnNcTvwyd7KMgX4IHHx80jJ8K7rDqx8Zn lbUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=7kXTJJbf5BiRHd7aGvyKgCIcgX8lAsnAcwSZ9DrqAKg=; b=HkkGejUm6JGgvMvS79GenLnI9ykYachVjrddSFomnD/50plUh9mm5ywHiQnYvA9aQj 3DXb5vLNGdUvrQbbQ0/BNk+PZ8Cn3fcv4aihMkja933XGsz6lEyxLJ6JUuhn6Mrn6u9v EileqIPtYlxRTh30lAbNQdMtc/GUHGlnPGnJp8g1SAI9CDna13KHzwycrxUKv/XiZofH QzcjMiqc41qdNH9RI8nNbCRcxbtGVN61b9TIan9OPw1JB62taR1oCoyVdvTX7Z0zl48L NggO8/WVGtYS1nA3VDxiNFARW++OQjWM01NbTIBBko8BxuiyuGgXyxcTV6W7+RDjOOmC nJBw== X-Gm-Message-State: AOAM531ITsBVGrW/nNEWq+Ov7NEi/GkuAO7lODlX9KG4GwQM171oDRdj lLrJqu9Kgyw19+qogFiOZc0= X-Google-Smtp-Source: ABdhPJw0FGw+Rm1w3m+WylNUME7BfUOGsjozIJBbFPnA9o7T5FlKpxahIV4zw2KepJtprceFBr8eLQ== X-Received: by 2002:a05:600c:154a:: with SMTP id f10mr3789951wmg.183.1627553597191; Thu, 29 Jul 2021 03:13:17 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Sandra Loosemore , Richard Henderson , Yves Vandervennet , Ley Foon Tan , Marek Vasut , Chris Wulff , Jeff Da Silva , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH-for-6.1? v2] target/nios2: Mark raise_exception() as noreturn Date: Thu, 29 Jul 2021 12:13:15 +0200 Message-Id: <20210729101315.2318714-1-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1627553601022100001 Raised exceptions don't return, so mark the helper with noreturn. Fixes: 032c76bc6f9 ("nios2: Add architecture emulation support") Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- v2: use TCG_CALL_NO_WG instead of noreturn (rth) Probably too late for 6.1, sorry I simply forgot to resend this patch (and remember about it reviewing "Unaligned accesses for user-only" https://www.mail-archive.com/qemu-devel@nongnu.org/msg826977.html) --- target/nios2/helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/nios2/helper.h b/target/nios2/helper.h index b0cb9146a5f..6c8f0b5b356 100644 --- a/target/nios2/helper.h +++ b/target/nios2/helper.h @@ -18,7 +18,7 @@ * */ =20 -DEF_HELPER_2(raise_exception, void, env, i32) +DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32) =20 #if !defined(CONFIG_USER_ONLY) DEF_HELPER_2(mmu_read_debug, void, env, i32) --=20 2.31.1