-
Notifications
You must be signed in to change notification settings - Fork 1.5k
arm: Add missing hflag update after writing xpsr #2268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -286,8 +286,8 @@ static void test_arm_m_exc_return(void) | |||||||||||
| int r_sp = 0x8000; | ||||||||||||
| uc_hook hook; | ||||||||||||
|
|
||||||||||||
| uc_common_setup(&uc, UC_ARCH_ARM, UC_MODE_THUMB | UC_MODE_MCLASS, code, | ||||||||||||
| sizeof(code) - 1, UC_CPU_ARM_CORTEX_A15); | ||||||||||||
| uc_common_setup(&uc, UC_ARCH_ARM, UC_MODE_THUMB, code, | ||||||||||||
| sizeof(code) - 1, UC_CPU_ARM_CORTEX_M7); | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you create a second test instead changing the used CPU? Maybe add a CPU parameter to the function and write two tests simply calling
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure why
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This are two different code path so we should have two tests. One for
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The check for unicorn/qemu/target/arm/translate.c Lines 807 to 811 in c24c9eb
If EXC_RETURN works for the M7, it will always work for the M33.
I can add tests for both the M7 and M33 though, if you think it's necessary. |
||||||||||||
| OK(uc_mem_map(uc, r_sp - 0x1000, 0x1000, UC_PROT_ALL)); | ||||||||||||
| OK(uc_hook_add(uc, &hook, UC_HOOK_INTR, | ||||||||||||
| test_arm_m_exc_return_hook_interrupt, NULL, 0, 0)); | ||||||||||||
|
|
||||||||||||
Uh oh!
There was an error while loading. Please reload this page.