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

FIX VTAxxxDPI symbols for tsim #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hardware/dpi/tsim_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ static VTASimDPIFunc _sim_dpi = nullptr;
static VTAHostDPIFunc _host_dpi = nullptr;
static VTAMemDPIFunc _mem_dpi = nullptr;

void VTASimDPI(dpi8_t* wait,
extern "C" void VTASimDPI(dpi8_t* wait,
dpi8_t* exit) {
assert(_sim_dpi != nullptr);
(*_sim_dpi)(_ctx, wait, exit);
}

void VTAHostDPI(dpi8_t* req_valid,
extern "C" void VTAHostDPI(dpi8_t* req_valid,
dpi8_t* req_opcode,
dpi8_t* req_addr,
dpi32_t* req_value,
Expand All @@ -60,7 +60,7 @@ void VTAHostDPI(dpi8_t* req_valid,
resp_valid, resp_value);
}

void VTAMemDPI(dpi8_t rd_req_valid,
extern "C" void VTAMemDPI(dpi8_t rd_req_valid,
dpi8_t rd_req_len,
dpi8_t rd_req_id,
dpi64_t rd_req_addr,
Expand Down