Skip to content

Commit

Permalink
[difftest] panic when bus r/w address out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed Oct 23, 2024
1 parent acf2e3e commit c83b5b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions difftest/dpi_t1rocketemu/src/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl ShadowBus {
}
}
None => {
error!("read addr={addr:#x} size={size}B dlen={bus_size}B leads to nowhere!");
panic!("read addr={addr:#x} size={size}B dlen={bus_size}B leads to nowhere!");
vec![0; bus_size as usize]
}
}
Expand Down Expand Up @@ -132,7 +132,7 @@ impl ShadowBus {
device.write_mem_chunk(offset, bus_size as usize, Option::from(masks), data);
}
None => {
error!("write addr={addr:#x} size={size}B dlen={bus_size}B leads to nowhere!");
panic!("write addr={addr:#x} size={size}B dlen={bus_size}B leads to nowhere!");
}
}
}
Expand Down

0 comments on commit c83b5b0

Please sign in to comment.