Skip to content

Commit a0ff129

Browse files
committed
fixes core2sc adapter to comply to changed read/write if
1 parent 88614be commit a0ff129

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sysc/core2sc_adapter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ template <typename PLAT> class core2sc_adapter : public PLAT, public sc2core_if
147147
.wr_mem{util::delegate<iss::mem::wr_mem_func_sig>::from<this_class, &this_class::write_mem>(this)}};
148148
}
149149

150-
iss::status read_mem(iss::access_type access, uint64_t addr, unsigned length, uint8_t* data) {
150+
iss::status read_mem(iss::access_type access, uint32_t space, uint64_t addr, unsigned length, uint8_t* data) {
151151
if(access && iss::access_type::DEBUG)
152152
return owner->read_mem_dbg(addr, length, data) ? iss::Ok : iss::Err;
153153
else {
154154
return owner->read_mem(addr, length, data, is_fetch(access)) ? iss::Ok : iss::Err;
155155
}
156156
}
157157

158-
iss::status write_mem(iss::access_type access, uint64_t addr, unsigned length, uint8_t const* data) {
158+
iss::status write_mem(iss::access_type access, uint32_t space, uint64_t addr, unsigned length, uint8_t const* data) {
159159
if(access && iss::access_type::DEBUG)
160160
return owner->write_mem_dbg(addr, length, data) ? iss::Ok : iss::Err;
161161
if(addr == this->tohost) {

0 commit comments

Comments
 (0)