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

Refactor vext_mem remove redundant type annotations and simplify #774

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nadime15
Copy link

@nadime15 nadime15 commented Mar 7, 2025

These changes align with the general LOAD and STORE implementation pattern used elsewhere in the codebase.

…fy implementation

These changes align with the general LOAD and STORE implementation pattern used elsewhere in the codebase.
Copy link
Collaborator

@Timmmm Timmmm left a comment

Choose a reason for hiding this comment

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

Nice LGTM

Copy link
Collaborator

@pmundkur pmundkur left a comment

Choose a reason for hiding this comment

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

Good idea. I'm wondering if it can be simplified further?

@@ -263,13 +263,12 @@ function process_vsseg (nf, vm, vs3, load_width_bytes, rs1, EMUL_pow, num_elem)
else match translateAddr(vaddr, Write(Data)) {
TR_Failure(e, _) => { handle_mem_exception(vaddr, e); return RETIRE_FAIL },
TR_Address(paddr, _) => {
let eares : MemoryOpResult(unit) = mem_write_ea(paddr, load_width_bytes, false, false, false);
let eares = mem_write_ea(paddr, load_width_bytes, false, false, false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can the mem_write_ea be folded into the match in the next line, like you did for the mem_write_value below? Similarly for the other cases of mem_write_ea later.

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.

3 participants