Add missing memory width assert preventing division by zero (#3546)
This commit is contained in:
@@ -504,6 +504,7 @@ void Mem::check() {
|
||||
int mask = (1 << max_wide_log2) - 1;
|
||||
log_assert(!(start_offset & mask));
|
||||
log_assert(!(size & mask));
|
||||
log_assert(width != 0);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user