Skip to content
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

Add SH4 support #114

Merged
merged 5 commits into from
Jun 27, 2023
Merged

Add SH4 support #114

merged 5 commits into from
Jun 27, 2023

Conversation

EstexNT
Copy link
Contributor

@EstexNT EstexNT commented Jun 26, 2023

This PR adds basic Hitachi SH4 support. Based off @sozud's work on SH2 which means it also relates to #113

image

diff.py Outdated
r"r1[0-5]|r[0-9]|fr1[0-5]|fr[0-9]|dr[02468]|dr1[024]|xd[02468]|xd1[024]|fv[048]|fv12"
),
arch_flags=["-m", "sh4"],
proc=AsmProcessorSH4,
Copy link
Owner

Choose a reason for hiding this comment

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

maybe we should use AsmProcessorSH2 instead of defining a new one? I don't know enough about the arch to say whether there are any cases where we have to treat them differently, so I'll let you decide

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK there aren't (and won't be) any differences between the two AsmProcessors -- I'll remove AsmProcessorSH4 then

@simonlindholm simonlindholm merged commit 247994f into simonlindholm:main Jun 27, 2023
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