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

Adapt the four PrintInt method for RV64 #193

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

privat
Copy link
Contributor

@privat privat commented Aug 18, 2023

Added:

  • PrintInt and PrintIntUnsigned handle the long register values in RV64 mode
  • PrintIntHex and PrintIntBinary also add more leading digits in RV64 mode

Implementation note:

  • For signed representation (PrintInt), Long.toString (since Java8) can handle both RV32 and RV64.
  • The three other syscalls rely on an unsigned representation, it's simpler to have an if and use the correct int or long version.

Tests are also added

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.

None yet

1 participant