minor update

This commit is contained in:
Blaise Tine
2021-06-23 04:19:13 -07:00
parent 1a33c83e6e
commit 7e0dc81cee
3 changed files with 14 additions and 5 deletions

View File

@@ -173,7 +173,7 @@ void Simulator::eval_mem_bus() {
}
// select the memory bank
uint32_t req_bank = vortex_->mem_req_addr % MEMORY_BANKS;
uint32_t req_bank = (MEMORY_BANKS >= 2) ? (vortex_->mem_req_addr % MEMORY_BANKS) : 0;
// handle memory stalls
bool mem_stalled = false;