From 6717e0202399c5b3f08b9a53cfbf1a9763992647 Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Thu, 25 Aug 2022 07:45:01 -0400 Subject: [PATCH] kernel: hashlib: cleaned up message about table size in cases where `sizeof(int) == 4`, (closes #3440) --- kernel/hashlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 0c9f25287..af2827153 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -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;