From 70240bfe6b1d03e47ba5c10d34650cfca4bedfda Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 17 Mar 2022 16:10:09 -0700 Subject: Don't respond to invalid HTIF operations with assertion failures They should cause bad behavior in target land rather than crashing the simulator. --- fesvr/device.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'fesvr') 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) -- cgit v1.1