Skip to content

Commit

Permalink
#81 fix todos
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed Nov 18, 2023
1 parent 18ff0ef commit 41edf46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion include/besm-666/sim/hart.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ class Hart : public INonCopyable {
void exec_FENCE();
void exec_FENCE_TSO();

// todo: to be implemented
/**
* @todo #81:90min to be implemented
*/
void exec_PAUSE();

// Will be implemented after CSR system release
Expand Down
4 changes: 1 addition & 3 deletions src/sim/hart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,6 @@ bool Hart::finished() const { return gprf_.read(exec::GPRF::PC) == prevPC_; }
void Hart::run() {
static_assert(sizeof(sim::Hart::HANDLER_ARR) / sizeof(sim::Hart::Handler) ==
(InstructionOp::BB_END + 1));

// TODO: may be macros?
RV64UDWord pc = gprf_.read(exec::GPRF::PC);
assert(pc % 2 == 0);
prevPC_ = pc;
Expand Down Expand Up @@ -339,7 +337,7 @@ void Hart::exec_BB_END() {
currentBB_->setStartPC(pc);
dec_.assembleBB(*currentBB_);
entry.setTag(pc);
// entry.setPayload(*currentBB_, pc);
// entry.setPayload(*currentBB_, pc);
cache_.incCounter(pc);
}
hookManager_->triggerBBFetchHook(*currentBB_);
Expand Down

0 comments on commit 41edf46

Please sign in to comment.