Skip to content

Commit 6614980

Browse files
committed
tests: Update exc_return test CPU
The previously used UC_MODE_MCLASS causes UC_CPU_ARM_CORTEX_M33 to be used. This CPU features ARM_FEATURE_M_SECURITY for which handler mode checks are skipped upopn exception return. This reveals a previously undetected issue.
1 parent c24c9eb commit 6614980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_arm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ static void test_arm_m_exc_return(void)
282282
int r_sp = 0x8000;
283283
uc_hook hook;
284284

285-
uc_common_setup(&uc, UC_ARCH_ARM, UC_MODE_THUMB | UC_MODE_MCLASS, code,
286-
sizeof(code) - 1, UC_CPU_ARM_CORTEX_A15);
285+
uc_common_setup(&uc, UC_ARCH_ARM, UC_MODE_THUMB, code,
286+
sizeof(code) - 1, UC_CPU_ARM_CORTEX_M7);
287287
OK(uc_mem_map(uc, r_sp - 0x1000, 0x1000, UC_PROT_ALL));
288288
OK(uc_hook_add(uc, &hook, UC_HOOK_INTR,
289289
test_arm_m_exc_return_hook_interrupt, NULL, 0, 0));

0 commit comments

Comments
 (0)