From patchwork Thu Dec 21 06:23:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82629 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9EFFC386188F for ; Thu, 21 Dec 2023 06:23:49 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 4F8763858404 for ; Thu, 21 Dec 2023 06:23:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F8763858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4F8763858404 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703139817; cv=none; b=omi3Va5IQHCh8PB5Ac44s5W4QxKAh9xSvCiVUbFBeSPsRei9FlVAlmEOIY17P+0nPclM7JnAkOuramR9zl8CtG5w3vnhLPkeSBqQ8tXGuTUsAMnO+bmos0drLJvIG5GOmO+lEHia4puG+OBWSZDhHbIAg1WTj7LPAST/Q9GFdXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703139817; c=relaxed/simple; bh=ebWVM7cWcqCIep7UsTrVz6m/cSzA1tzKP2cZWD/1NTs=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=u5XbA1+kozEdU5T6UmsMyCAmdnyIFWtCFtTCutEAlw4B8DJ8/aV0RKBNMR+Xtx0zzxtwdWwA8PFVEcpV9CkSgj2cDsaJH8LmePE5vFOqt/h2VekXNSHxlipobks/UY0122AsLhLtnbVdkzfdtMMB1xeRUsSCpxMW3R9AdGBJn3I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id E0FAE340BEF; Thu, 21 Dec 2023 06:23:35 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed] sim: common: mark engine restart as noreturn Date: Thu, 21 Dec 2023 01:23:35 -0500 Message-ID: <20231221062335.14681-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org This helps the compiler with optimization and fixes fallthru warnings. --- sim/common/sim-engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/common/sim-engine.h b/sim/common/sim-engine.h index f027cdced5ef..5d1f8fa48cbb 100644 --- a/sim/common/sim-engine.h +++ b/sim/common/sim-engine.h @@ -88,7 +88,7 @@ extern void sim_engine_restart (SIM_DESC sd, sim_cpu *last_cpu, /* NULL -> in event-mgr */ sim_cpu *next_cpu, /* NULL -> succ (last_cpu) or event-mgr */ - sim_cia cia); + sim_cia cia) ATTRIBUTE_NORETURN; /* Restart hook - allow target specific operation when restarting a simulator */