kernel: hashlib: cleaned up message about table size in cases where `sizeof(int) == 4`, (closes #3440)

This commit is contained in:
Aki Van Ness 2022-08-25 07:45:01 -04:00
parent e3eb114e75
commit 6717e02023
No known key found for this signature in database
GPG Key ID: C629E8EC06327BEE
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ inline int hashtable_size(int min_size)
if (p >= min_size) return p;
if (sizeof(int) == 4)
throw std::length_error("hash table exceeded maximum size. use a ILP64 abi for larger tables.");
throw std::length_error("hash table exceeded maximum size.\nDesign is likely too large for yosys to handle, if possible try not to flatten the design.");
for (auto p : zero_and_some_primes)
if (100129 * p > min_size) return 100129 * p;