Skip to content

Commit

Permalink
MemReadRecord update change
Browse files Browse the repository at this point in the history
Change-Id: I4bb85b32acbf808516a9208d1a902b03ce3ed1be
  • Loading branch information
hakase56557 committed Oct 9, 2023
1 parent 8f97a35 commit 2df5d8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/arch/riscvcapstone/o3/dyn_inst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,6 @@ DynInst::initiateMemRead(Addr addr, unsigned size, Request::Flags flags,
{
assert(byte_enable.size() == size);

memReads[memReadN] = MemReadRecord {
.addr = addr
};
memReadCompleted[memReadN] = false;
++ memReadN;
return cpu->pushRequest(
dynamic_cast<DynInstPtr::PtrType>(this),
/* ld */ true, nullptr, size, addr, flags, nullptr, nullptr,
Expand Down
9 changes: 9 additions & 0 deletions src/arch/riscvcapstone/o3/dyn_inst.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,15 @@ class DynInst : public ExecContext, public RefCounted
// storage (which is pretty hard to imagine they would have reason
// to do).

void
updateMemReadRecord(Addr paddr) {
memReads[memReadN] = MemReadRecord {
.addr = paddr
};
memReadCompleted[memReadN] = false;
++ memReadN;
}

RegVal
getRegOperand(const StaticInst *si, int idx) override
{
Expand Down

0 comments on commit 2df5d8e

Please sign in to comment.