Commit 62cad9aaa9 for qemu.org

commit 62cad9aaa97de129dc300aef4d70c3963a64f0a8
Author: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Date:   Mon Oct 19 21:20:22 2026 +0000

    target/avr: define and call helpers using HELPER macro

    In a upcoming commit, we'll prefix all helpers and helper_info with target
    prefix, to disambiguate symbols between targets. As a first step, we need to
    make sure all usages are using the existing HELPER macro.

    Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
    Acked-by: Yonggang Luo <luoyonggang@gmail.com>
    Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Reviewed-by: Anton Johansson <anjo@rev.ng>
    Message-ID: <20261019212046.149572-4-pierrick.bouvier@oss.qualcomm.com>
    Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

diff --git a/target/avr/helper.c b/target/avr/helper.c
index 8f90b8d9a4..49bd2f57c9 100644
--- a/target/avr/helper.c
+++ b/target/avr/helper.c
@@ -159,7 +159,7 @@ bool avr_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
  *  helpers
  */

-void helper_sleep(CPUAVRState *env)
+void HELPER(sleep)(CPUAVRState *env)
 {
     CPUState *cs = env_cpu(env);

@@ -167,7 +167,7 @@ void helper_sleep(CPUAVRState *env)
     cpu_loop_exit(cs);
 }

-void helper_unsupported(CPUAVRState *env)
+void HELPER(unsupported)(CPUAVRState *env)
 {
     CPUState *cs = env_cpu(env);

@@ -183,7 +183,7 @@ void helper_unsupported(CPUAVRState *env)
     cpu_loop_exit(cs);
 }

-void helper_debug(CPUAVRState *env)
+void HELPER(debug)(CPUAVRState *env)
 {
     CPUState *cs = env_cpu(env);

@@ -191,7 +191,7 @@ void helper_debug(CPUAVRState *env)
     cpu_loop_exit(cs);
 }

-void helper_break(CPUAVRState *env)
+void HELPER(break)(CPUAVRState *env)
 {
     CPUState *cs = env_cpu(env);

@@ -199,7 +199,7 @@ void helper_break(CPUAVRState *env)
     cpu_loop_exit(cs);
 }

-void helper_wdr(CPUAVRState *env)
+void HELPER(wdr)(CPUAVRState *env)
 {
     qemu_log_mask(LOG_UNIMP, "WDG reset (not implemented)\n");
 }
@@ -281,7 +281,7 @@ const MemoryRegionOps avr_cpu_reg2 = {
  *  this function implements ST instruction when there is a possibility to write
  *  into a CPU register
  */
-void helper_fullwr(CPUAVRState *env, uint32_t data, uint32_t addr)
+void HELPER(fullwr)(CPUAVRState *env, uint32_t data, uint32_t addr)
 {
     env->fullacc = false;