From 45c09f3fae38052b7c0e04e2e5e7bbed025efd01 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 27 Aug 2018 18:25:58 -0400 Subject: [PATCH] Fix LLVM thread_safety function --- include/verilated.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/verilated.h b/include/verilated.h index 66ae9ce7d..45ec64d10 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -120,6 +120,7 @@ class VL_CAPABILITY("mutex") VerilatedMutex { public: VerilatedMutex() {} ~VerilatedMutex() {} + const VerilatedMutex& operator!() const { return *this; } // For -fthread_safety /// Acquire/lock mutex void lock() VL_ACQUIRE() { // Try to acquire the lock by spinning. If the wait is short,