This is an automated email from Gerrit.

"Lucien Buchmann <[email protected]>" just uploaded a new patch set 
to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9330

-- gerrit

commit 8cd61e65ea391446573bf517ef04b0e063fc655d
Author: Lucien Dufour <[email protected]>
Date:   Mon Dec 29 18:34:07 2025 +0100

    target/armv4_5: Use target_addr_t for entry/exit-points
    
    Using the target_addr_t to avoid the cast to uint32_t.
    
    Change-Id: I3e7a9543ba832d04238bdc1d435395b14e7f331e
    Signed-off-by: Lucien Dufour <[email protected]>

diff --git a/src/target/arm.h b/src/target/arm.h
index 54a25731c2..0c9a294b02 100644
--- a/src/target/arm.h
+++ b/src/target/arm.h
@@ -315,7 +315,7 @@ int armv4_5_run_algorithm(struct target *target,
 int armv4_5_run_algorithm_inner(struct target *target,
                int num_mem_params, struct mem_param *mem_params,
                int num_reg_params, struct reg_param *reg_params,
-               uint32_t entry_point, uint32_t exit_point,
+               target_addr_t entry_point, target_addr_t exit_point,
                unsigned int timeout_ms, void *arch_info,
                int (*run_it)(struct target *target, uint32_t exit_point,
                                unsigned int timeout_ms, void *arch_info));
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index 1b3ca0cdbe..36ada97ac2 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -1404,7 +1404,7 @@ static int armv4_5_run_algorithm_completion(struct target 
*target,
 int armv4_5_run_algorithm_inner(struct target *target,
        int num_mem_params, struct mem_param *mem_params,
        int num_reg_params, struct reg_param *reg_params,
-       uint32_t entry_point, uint32_t exit_point,
+       target_addr_t entry_point, target_addr_t exit_point,
        unsigned int timeout_ms, void *arch_info,
        int (*run_it)(struct target *target, uint32_t exit_point,
        unsigned int timeout_ms, void *arch_info))
@@ -1600,8 +1600,8 @@ int armv4_5_run_algorithm(struct target *target,
                        mem_params,
                        num_reg_params,
                        reg_params,
-                       (uint32_t)entry_point,
-                       (uint32_t)exit_point,
+                       entry_point,
+                       exit_point,
                        timeout_ms,
                        arch_info,
                        armv4_5_run_algorithm_completion);

-- 

Reply via email to