target/nios2: Mark raise_exception() as noreturn
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 29 Jul 2021 10:13:15 +0000 (12:13 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 30 Jul 2021 18:23:12 +0000 (08:23 -1000)
Raised exceptions don't return, so mark the helper with noreturn.

Fixes: 032c76bc6f9 ("nios2: Add architecture emulation support")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210729101315.2318714-1-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/nios2/helper.h

index b0cb9146a5f5b39e34b186b908ff157b4a059fb3..6c8f0b5b35628578eadb4fe7a463d44e5d5f8f58 100644 (file)
@@ -18,7 +18,7 @@
  * <http://www.gnu.org/licenses/lgpl-2.1.html>
  */
 
-DEF_HELPER_2(raise_exception, void, env, i32)
+DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32)
 
 #if !defined(CONFIG_USER_ONLY)
 DEF_HELPER_2(mmu_read_debug, void, env, i32)