diff options
author | Andrew Waterman <andrew@sifive.com> | 2022-03-17 16:10:09 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2022-03-17 16:11:37 -0700 |
commit | 70240bfe6b1d03e47ba5c10d34650cfca4bedfda (patch) | |
tree | 3dc05c0073e5e16f2baedb530e79f44f1f24d812 | |
parent | 562d66b814e1abc07304f4277a514bf6ac947c9a (diff) | |
download | spike-70240bfe6b1d03e47ba5c10d34650cfca4bedfda.zip spike-70240bfe6b1d03e47ba5c10d34650cfca4bedfda.tar.gz spike-70240bfe6b1d03e47ba5c10d34650cfca4bedfda.tar.bz2 |
Don't respond to invalid HTIF operations with assertion failures
They should cause bad behavior in target land rather than crashing the
simulator.
-rw-r--r-- | fesvr/device.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fesvr/device.cc b/fesvr/device.cc index 3cd3cd4..b149f3c 100644 --- a/fesvr/device.cc +++ b/fesvr/device.cc @@ -41,7 +41,6 @@ void device_t::handle_identify(command_t cmd) { size_t what = cmd.payload() % command_t::MAX_COMMANDS; uint64_t addr = cmd.payload() / command_t::MAX_COMMANDS; - assert(addr % IDENTITY_SIZE == 0); char id[IDENTITY_SIZE] = {0}; if (what == command_t::MAX_COMMANDS-1) |