projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[sim] added icache simulator (disabled by default)
[riscv-isa-sim.git]
/
riscv
/
applink.cc
diff --git
a/riscv/applink.cc
b/riscv/applink.cc
index 659243843b13e3b691651e3faabdf655369cbd94..5ced3203cb0b669c326009f3afcd98429e55929d 100644
(file)
--- a/
riscv/applink.cc
+++ b/
riscv/applink.cc
@@
-107,7
+107,7
@@
int appserver_link_t::wait_for_packet()
break;
case APP_CMD_STOP:
send_packet(&ackpacket);
-
exit(0
);
+
throw quit_sim(
);
case APP_CMD_READ_MEM:
demand(p.addr % APP_DATA_ALIGN == 0, "misaligned address");
demand(p.data_size % APP_DATA_ALIGN == 0, "misaligned data");