Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix unexpected "JALR" behavior in JIT #479

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

vacantron
Copy link
Collaborator

@vacantron vacantron commented Aug 21, 2024

The register which stores the indirect address needs to be loaded first to avoid being overriden when the operands are same in JALR, C.JALR.

The register which stores the indirect address needs to be loaded first
to avoid being overriden when the operands are same in "JALR", "C.JALR".

Fix sysprog21#472
Copy link
Contributor

@jserv jserv left a comment

Choose a reason for hiding this comment

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

Benchmarks

Benchmark suite Current: 559dffe Previous: 1924bdf Ratio
Dhrystone 1593 Average DMIPS over 10 runs 1585.87 Average DMIPS over 10 runs 1.00
Coremark 1405.282 Average iterations/sec over 10 runs 1396.388 Average iterations/sec over 10 runs 0.99

This comment was automatically generated by workflow using github-action-benchmark.

@jserv jserv added this to the release-2024.1 milestone Aug 21, 2024
@jserv jserv merged commit 654a2ef into sysprog21:master Aug 21, 2024
8 checks passed
@jserv
Copy link
Contributor

jserv commented Aug 21, 2024

Thank @vacantron for contributing!

vestata pushed a commit to vestata/rv32emu that referenced this pull request Jan 24, 2025
Fix unexpected "JALR" behavior in JIT
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants