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

Consolidate AMO RVOP coding consistency #428

Merged
merged 1 commit into from
May 6, 2024

Conversation

ChinYikMing
Copy link
Collaborator

The "addr" variable is used to specify the memory address in many I/O operations within RVOP macro, such as the lh and lw instructions. But, most of the AMO instructions do not use it. Thus, the consistency is consolidated by this commit.

The "addr" variable is used to specify the memory address in many I/O
operations within RVOP macro, such as the lh and lw instructions. But,
most of the AMO instructions do not use it. Thus, the consistency is
consolidated by this commit.
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: 96af57c Previous: fe40307 Ratio
Dhrystone 1760.44 Average DMIPS over 10 runs 1746.22 Average DMIPS over 10 runs 0.99
Coremark 1506.573 Average iterations/sec over 10 runs 1511.811 Average iterations/sec over 10 runs 1.00

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

@jserv jserv merged commit 06ce6d2 into sysprog21:master May 6, 2024
8 checks passed
@jserv
Copy link
Contributor

jserv commented May 6, 2024

Thank @ChinYikMing for contributing!

@ChinYikMing ChinYikMing deleted the consolidate-coding-style branch May 7, 2024 02:31
@jserv jserv added this to the release-2024.1 milestone Jun 4, 2024
vestata pushed a commit to vestata/rv32emu that referenced this pull request Jan 24, 2025
The 'addr' variable is used to specify the memory address in many I/O
operations within the RVOP macro, such as the 'lh' and 'lw' instructions.
However, most of the AMO (Atomic Memory Operation) instructions did not
use it. To maintain consistency, the use of the 'addr' variable has been
consolidated.
# 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