Skip to content

[v0.17-branch] qemu: Adding patch to fix qemu rx #945

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

Merged

Conversation

duynguyenxa
Copy link
Member

@duynguyenxa duynguyenxa commented Jun 18, 2025

This commit adding 3 patch to fix for qemu_rx

1st patch is to fix for timer accurarcy issue
2nd patch is to fix for flow of execute interrupt handling function for normal interrup and CPU exception
3rd patch is to add Reset the CPU at qemu reset time so elf
target can be execute when use device loader

Same patch as #944 but v0.17 based

@nashif nashif changed the title qemu: Adding patch to fix qemu rx [v0.17-branch] qemu: Adding patch to fix qemu rx Jun 18, 2025
}
save_psw = rx_cpu_pack_psw(env);
env->psw_pm = env->psw_i = env->psw_u = 0;
+ int vec = cs->exception_index;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure this should be int32_t to match the type in cpu.h.

Copy link
Member Author

@duynguyenxa duynguyenxa Jun 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for checking, I've fixed it to int32_t

Copy link
Collaborator

@keith-packard keith-packard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix type of variable holding exception_index value.

@duynguyenxa duynguyenxa force-pushed the rx-qemu-patch-fix-v0.17-based branch from 27c3abe to 648759b Compare June 20, 2025 05:47
@nashif nashif added this to the 0.17.2 milestone Jun 20, 2025
This commit adding 2 patch to fix for qemu_rx
- 1st patch is to fix for timer accurarcy issue
- 2nd patch is to fix for flow of execute interrupt handling
function for normal interrup and CPU exception
- 3rd patch is to add Reset the CPU at qemu reset time so elf
target can be execute when use device loader

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>

squash
@duynguyenxa duynguyenxa force-pushed the rx-qemu-patch-fix-v0.17-based branch from 648759b to b7da619 Compare June 20, 2025 10:52
@nashif nashif requested a review from keith-packard June 20, 2025 15:36
@nashif nashif merged commit 3723d3f into zephyrproject-rtos:v0.17-branch Jun 22, 2025
37 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants