-
Notifications
You must be signed in to change notification settings - Fork 207
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
refactored from() method for MemoryOp array impl #591
refactored from() method for MemoryOp array impl #591
Conversation
Note: The following RV32IM ops are not matched to any memory operation since the original code did not match them: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! Will merge as soon as the fmt and clippy errors are fixed
RV32IM::JAL => [ | ||
MemoryOp::noop_read(), | ||
MemoryOp::noop_read(), | ||
rd_write(), | ||
MemoryOp::noop_read(), | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JAL appears twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the duplicate: b7e93f9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ran cargo fmt
: 7388138
This PR refactors the
from(val: &RVTraceRow)
method. Instead of matching an instruction type to an array of memory operations, the method now matches all of the RV32IM instructions to a specific memory operation, including theRV32IM::ECALL
instruction.