This is an automated email from Gerrit.

"Karl Palsson <ka...@tweak.au>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/7844

-- gerrit

commit a8cfade49776aac160b255e606f7d49bec273835
Author: Karl Palsson <ka...@tweak.au>
Date:   Wed Aug 2 21:33:32 2023 +0000

    efm32: drop unnecessary and incomplete checks
    
    There's really no reason to try and add an extra layer of cpu
    verification here.
    
    Change-Id: If8c4aa03754607be6c089f514ae300b09b067ffa
    Signed-off-by: Karl Palsson <ka...@tweak.au>

diff --git a/src/flash/nor/efm32.c b/src/flash/nor/efm32.c
index 3a49afc9c3..f8e0886570 100644
--- a/src/flash/nor/efm32.c
+++ b/src/flash/nor/efm32.c
@@ -251,18 +251,6 @@ static int efm32x_read_info(struct flash_bank *bank)
 
        memset(efm32_info, 0, sizeof(struct efm32_info));
 
-       const struct cortex_m_common *cortex_m = target_to_cm(bank->target);
-
-       switch (cortex_m->core_info->partno) {
-       case CORTEX_M3_PARTNO:
-       case CORTEX_M4_PARTNO:
-       case CORTEX_M0P_PARTNO:
-               break;
-       default:
-               LOG_ERROR("Target is not Cortex-Mx Device");
-               return ERROR_FAIL;
-       }
-
        ret = efm32x_get_flash_size(bank, &(efm32_info->flash_sz_kib));
        if (ret != ERROR_OK)
                return ret;

-- 

Reply via email to