Skip to content

Commit

Permalink
[difftest] fix a bug in memory map route
Browse files Browse the repository at this point in the history
  • Loading branch information
FanShupei committed Dec 18, 2024
1 parent f8fdbe6 commit 9963671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion difftest/dpi_t1rocketemu/src/interconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl AddressSpace {
for (idx, dev) in self.devices.iter().enumerate() {
let (base, size) = dev.base_and_size;
if base <= addr && addr - base < size {
return if addr - base + len < size {
return if addr - base + len <= size {
Some(idx)
} else {
None
Expand Down

0 comments on commit 9963671

Please sign in to comment.