Skip to content

changing type of external_simulator member of external_sim_device_t #1990

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

mslijepc
Copy link
Collaborator

@mslijepc mslijepc commented May 14, 2025

Even though we allowed void* data member of external_simulator, in load/store we need do static cast. I.e. static_cast<abstract_sim_if_t*>(external_simulator). I think it is better to have proper data member type which also prevents some bugs which can happen with static_cast

@mslijepc mslijepc merged commit f6b16b1 into riscv-software-src:master May 16, 2025
3 checks passed
@mslijepc mslijepc deleted the mslijepc_20250514_external-sim-ptr branch May 16, 2025 18:05
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.

2 participants