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

Fixed endianness when writing PPC32 CR register. #1659

Merged
merged 1 commit into from
Jul 23, 2022

Conversation

zachsez
Copy link
Contributor

@zachsez zachsez commented Jul 20, 2022

When writing a value to the CR (conditional register) the order of the nibbles was reversed. I believe the nibble ordering in the reg_read is correct, so I correct reg_write to maintain the same endianness. Also included a unit test to make sure that the value we write is the value we read out.

@wtdcode
Copy link
Member

wtdcode commented Jul 23, 2022

Looks pretty good to me, thanks & welcome!

@wtdcode wtdcode merged commit 34baf9a into unicorn-engine:master Jul 23, 2022
@wtdcode
Copy link
Member

wtdcode commented Jul 23, 2022

You are sending to the wrong branch. It should go to dev. Anyway I fixed it already.

@zachsez
Copy link
Contributor Author

zachsez commented Jul 23, 2022

Sorry about that, if I PR in the future, I'll use dev.

@zachsez zachsez deleted the ppc_cr_read_fix branch July 23, 2022 21:54
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