From patchwork Tue Sep 14 00:14:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 510494 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1056815jao; Mon, 13 Sep 2021 17:43:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNllBelns43Uax5//ZdaDDIgyqw00MKKNZ8d0brVIEVUHLZKZPCYe1HxKpNUtLtYBW+YsD X-Received: by 2002:a0c:c281:: with SMTP id b1mr2438525qvi.64.1631580219662; Mon, 13 Sep 2021 17:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580219; cv=none; d=google.com; s=arc-20160816; b=u5c4GC/3RXpHfcLdqWhOihyBZ9/IAxlWl27e0j6aXpUt1B9jxal3yxiIs9hk22pOj2 7sc8fUMZCU51m1jkFhILRFR0h832bbYtURFWc9J788l5j5KF5IU+vwEHoOL3I0mn89Xd D+Ai5fTLrD/JqmRfGkRvMnHxk4vKozF3n4XAEY8F9wCgkK6yhCtMqK4Xyz9Dg6sd/GYs hNVOOQX1xFnaoEi/bnxpPnLxHvkOfC2V9ByDdN2DhTk+xvkVUD3n9I56h2GWT5qr5vzK JvCElCB4EH4IGkz+6HcKABBHqfff2b2ANsKTEgp9X7XfVmi2TVkF7uILqrf78MiXCTSh we2g== 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=znFE2rH6NP0Hsm2vcYSsLUjEpqww+ODmNFuebItoj0M=; b=ZgjLUOGkZL5VYukDBivKTaahjvvKQZ1ta03jzPA0zZ94bgnQpuAzGhcJxULB7cEi+e aCd93iCBU+U84GEIrrPgwISSQOiIR7F21Ph2VQvFK4IeHxc3l6TwJ6fVQdAiev6YcfgH Kq+feGD0AOMQ+IY4RPk9p1xLmU/MlbQrYQvaFu/WyGBJTr8qviWGmVCvY3bfw17MCzwJ xF9AHzOUjoW7RQSUrxx9oHaKdRDAhCZD82LimpwGZCoY3z7vXelRzNlG05/0J/ZyEv0g uqiCjUTSJOkGouEKxE6hP+CGKulM/24XYsrh6GiWiE988F3oAvirxnuWZAobojuEI3+s viQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jTT7WyrZ; 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=fail (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 u7si5269942qki.407.2021.09.13.17.43.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Sep 2021 17:43: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=fail header.i=@linaro.org header.s=google header.b=jTT7WyrZ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPwXz-0000eA-3Y for patch@linaro.org; Mon, 13 Sep 2021 20:43:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPw6j-0001oH-2W for qemu-devel@nongnu.org; Mon, 13 Sep 2021 20:15:30 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:41711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPw6f-0007sD-It for qemu-devel@nongnu.org; Mon, 13 Sep 2021 20:15:28 -0400 Received: by mail-pj1-x1030.google.com with SMTP id m21-20020a17090a859500b00197688449c4so1397830pjn.0 for ; Mon, 13 Sep 2021 17:15:23 -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=znFE2rH6NP0Hsm2vcYSsLUjEpqww+ODmNFuebItoj0M=; b=jTT7WyrZvQ8Rq5QF2A66nUvSfyHDBtvZwccnXifdySikvKqTiTBmrVp57vHXIuJ+xG wvor5splcoTW6sfruTgOk1CDSYKvufOoA5YeCzJ5Fx7uADIALACzfKNL2OQ1I4SBxiu/ FhxXLWo3vkb8cVJGU/Iqrfq368ous5a5ez5/hD76S+ON+qDhHKK0lT+zGaCzhUDAtYOF MKZXDG2KtdBpXi/7YIk5Kwjd2zY0aNqdQDZ3yAm7tXJkj2Qpq+t9gBxVCNiSJxS6Lgx7 1ZoPp8cynuN/POvjWvz4ClKJ89Myk2m8PASDitS1TLCH4rRw03zqxsYbbuffUA61F/MT GMUQ== 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=znFE2rH6NP0Hsm2vcYSsLUjEpqww+ODmNFuebItoj0M=; b=dUUui5znwhYasiFq2K08rSF1h28ckqvjfrtbdTir2BukKV8ClyjZbTvh4bmzLB+BJT qOvSgWFPEs+70c7Zm78m7Tdbuor9kmfv12+nKB5ZjJ6DhCz+79y4Ga1ZmkZVxaabhdmS aCLVglxCBK8uneZGP0IQt5sxrzOhHgp59xpuzedQ/Gfv4GJBwpHIEUlKOCisunq1jqwo hyNXdet35zlkNnHmhEbROgq/12ButZDEqYQcla7CBRIsa3KZa2/SLJldBR/QuPFXwJmD zP9ibMHCQuF6Jyajqovww66Cu8KHr6kVtuhTuShnJnw0AgMybf3Inzj5J0PA0L01OeFz C2VQ== X-Gm-Message-State: AOAM531CfFF55uwxZ1l23qxwyDG0Ku/AStmqyC+F21otr3oIMujuRYej v7I41svxJXm8ah0hKYtiz0g3zkPfERsI6A== X-Received: by 2002:a17:90a:ec17:: with SMTP id l23mr2449143pjy.142.1631578522125; Mon, 13 Sep 2021 17:15:22 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id m7sm9334179pgn.32.2021.09.13.17.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 17:15:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 33/44] user: Mark cpu_loop() with noreturn attribute Date: Mon, 13 Sep 2021 17:14:45 -0700 Message-Id: <20210914001456.793490-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210914001456.793490-1-richard.henderson@linaro.org> References: <20210914001456.793490-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Bin Meng , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= , Warner Losh Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé cpu_loop() never exits, so mark it with QEMU_NORETURN. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Reviewed-By: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20210905000429.1097336-1-f4bug@amsat.org> Signed-off-by: Richard Henderson --- bsd-user/qemu.h | 2 +- linux-user/qemu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 522d6c4031..1511327d51 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -168,7 +168,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg5, abi_long arg6); void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2); extern __thread CPUState *thread_cpu; -void cpu_loop(CPUArchState *env); +void QEMU_NORETURN cpu_loop(CPUArchState *env); char *target_strerror(int err); int get_osversion(void); void fork_start(void); diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 3b0b6b75fe..5b2c764ae7 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -236,7 +236,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8); extern __thread CPUState *thread_cpu; -void cpu_loop(CPUArchState *env); +void QEMU_NORETURN cpu_loop(CPUArchState *env); const char *target_strerror(int err); int get_osversion(void); void init_qemu_uname_release(void);