diff mbox series

[07/26] target/avr: Mark some helpers noreturn

Message ID 20210621013439.1791385-8-richard.henderson@linaro.org
State Superseded
Headers show
Series accel/tcg: Introduce translator_use_goto_tb | expand

Commit Message

Richard Henderson June 21, 2021, 1:34 a.m. UTC
All of these helpers end with cpu_loop_exit.

Cc: Michael Rolnik <mrolnik@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 target/avr/helper.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.25.1

Comments

Michael Rolnik June 21, 2021, 5:39 a.m. UTC | #1
Reviewed-by: Michael Rolnik <mrolnik@gmail.com>



On Mon, Jun 21, 2021 at 4:34 AM Richard Henderson <
richard.henderson@linaro.org> wrote:

> All of these helpers end with cpu_loop_exit.

>

> Cc: Michael Rolnik <mrolnik@gmail.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

> ---

>  target/avr/helper.h | 8 ++++----

>  1 file changed, 4 insertions(+), 4 deletions(-)

>

> diff --git a/target/avr/helper.h b/target/avr/helper.h

> index 8e1ae7fda0..4d02e648fa 100644

> --- a/target/avr/helper.h

> +++ b/target/avr/helper.h

> @@ -19,10 +19,10 @@

>   */

>

>  DEF_HELPER_1(wdr, void, env)

> -DEF_HELPER_1(debug, void, env)

> -DEF_HELPER_1(break, void, env)

> -DEF_HELPER_1(sleep, void, env)

> -DEF_HELPER_1(unsupported, void, env)

> +DEF_HELPER_1(debug, noreturn, env)

> +DEF_HELPER_1(break, noreturn, env)

> +DEF_HELPER_1(sleep, noreturn, env)

> +DEF_HELPER_1(unsupported, noreturn, env)

>  DEF_HELPER_3(outb, void, env, i32, i32)

>  DEF_HELPER_2(inb, tl, env, i32)

>  DEF_HELPER_3(fullwr, void, env, i32, i32)

> --

> 2.25.1

>

>


-- 
Best Regards,
Michael Rolnik
<div dir="ltr">Reviewed-by: Michael Rolnik &lt;<a href="mailto:mrolnik@gmail.com">mrolnik@gmail.com</a>&gt;<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 21, 2021 at 4:34 AM Richard Henderson &lt;<a href="mailto:richard.henderson@linaro.org">richard.henderson@linaro.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">All of these helpers end with cpu_loop_exit.<br>
<br>
Cc: Michael Rolnik &lt;<a href="mailto:mrolnik@gmail.com" target="_blank">mrolnik@gmail.com</a>&gt;<br>
Signed-off-by: Richard Henderson &lt;<a href="mailto:richard.henderson@linaro.org" target="_blank">richard.henderson@linaro.org</a>&gt;<br>

---<br>
 target/avr/helper.h | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/target/avr/helper.h b/target/avr/helper.h<br>
index 8e1ae7fda0..4d02e648fa 100644<br>
--- a/target/avr/helper.h<br>
+++ b/target/avr/helper.h<br>
@@ -19,10 +19,10 @@<br>
  */<br>
<br>
 DEF_HELPER_1(wdr, void, env)<br>
-DEF_HELPER_1(debug, void, env)<br>
-DEF_HELPER_1(break, void, env)<br>
-DEF_HELPER_1(sleep, void, env)<br>
-DEF_HELPER_1(unsupported, void, env)<br>
+DEF_HELPER_1(debug, noreturn, env)<br>
+DEF_HELPER_1(break, noreturn, env)<br>
+DEF_HELPER_1(sleep, noreturn, env)<br>
+DEF_HELPER_1(unsupported, noreturn, env)<br>
 DEF_HELPER_3(outb, void, env, i32, i32)<br>
 DEF_HELPER_2(inb, tl, env, i32)<br>
 DEF_HELPER_3(fullwr, void, env, i32, i32)<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Best Regards,<br>Michael Rolnik</div>
Philippe Mathieu-Daudé June 21, 2021, 12:31 p.m. UTC | #2
On 6/21/21 3:34 AM, Richard Henderson wrote:
> All of these helpers end with cpu_loop_exit.

> 

> Cc: Michael Rolnik <mrolnik@gmail.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

> ---

>  target/avr/helper.h | 8 ++++----

>  1 file changed, 4 insertions(+), 4 deletions(-)


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff mbox series

Patch

diff --git a/target/avr/helper.h b/target/avr/helper.h
index 8e1ae7fda0..4d02e648fa 100644
--- a/target/avr/helper.h
+++ b/target/avr/helper.h
@@ -19,10 +19,10 @@ 
  */
 
 DEF_HELPER_1(wdr, void, env)
-DEF_HELPER_1(debug, void, env)
-DEF_HELPER_1(break, void, env)
-DEF_HELPER_1(sleep, void, env)
-DEF_HELPER_1(unsupported, void, env)
+DEF_HELPER_1(debug, noreturn, env)
+DEF_HELPER_1(break, noreturn, env)
+DEF_HELPER_1(sleep, noreturn, env)
+DEF_HELPER_1(unsupported, noreturn, env)
 DEF_HELPER_3(outb, void, env, i32, i32)
 DEF_HELPER_2(inb, tl, env, i32)
 DEF_HELPER_3(fullwr, void, env, i32, i32)