Skip to content

Commit

Permalink
add isLoad isStore (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 authored Dec 21, 2023
1 parent a0d1106 commit 4c2bd90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/besm-666/instruction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ struct Instruction {
operation == SRET || operation == ECALL);
}

bool isLoad() const {
return (operation == LB || operation == LH || operation == LW ||
operation == LBU || operation == LHU);
}

bool isStore() const {
return (operation == SB || operation == SH || operation == SW);
}

static constexpr RV64UDWord IMMIDIATE_POISON = UINT32_MAX;
};

Expand Down

0 comments on commit 4c2bd90

Please sign in to comment.