From 8513021e0bd6e4c4af29b55527295d661b8eb717 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Mon, 4 Nov 2024 13:11:33 +0100 Subject: [PATCH] hashlib: restore hash_obj_ops for pointers to indexed types --- kernel/yosys_common.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/kernel/yosys_common.h b/kernel/yosys_common.h index 71b4ccc71..67039564e 100644 --- a/kernel/yosys_common.h +++ b/kernel/yosys_common.h @@ -238,6 +238,26 @@ using RTLIL::State; using RTLIL::SigChunk; using RTLIL::SigSig; +namespace hashlib { + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; + template<> struct hash_ops : hash_obj_ops {}; +} + void memhasher_on(); void memhasher_off(); void memhasher_do();