This is an automated email from Gerrit.

"Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/6741

-- gerrit

commit 6da215260e50a5710b87d87949963e3f0081cfe8
Author: Tomas Vanek <van...@fbl.cz>
Date:   Mon Nov 22 13:50:01 2021 +0100

    target/hla_target: set cortex_m->common_magic
    
    hla_target uses the same struct cortex_m_common as the standard cortex_m
    target. Unlike the cortex_m target hla missed setting of common_magic.
    
    Set commont_magic to help pointer verification.
    
    Change-Id: I4dae79f056c3d73adf524e26aa8ef2d3a57b471e
    Signed-off-by: Tomas Vanek <van...@fbl.cz>

diff --git a/src/target/hla_target.c b/src/target/hla_target.c
index c67c9cc89..f02fc1f7b 100644
--- a/src/target/hla_target.c
+++ b/src/target/hla_target.c
@@ -214,6 +214,8 @@ static int adapter_target_create(struct target *target,
                return ERROR_FAIL;
        }
 
+       cortex_m->common_magic = CORTEX_M_COMMON_MAGIC;
+
        adapter_init_arch_info(target, cortex_m, target->tap);
 
        return ERROR_OK;

-- 

Reply via email to