Verilated: Always define VL_RDTSC, though unused; useful for benchmarking.
This commit is contained in:
parent
237f4806bf
commit
3a777c2a37
|
|
@ -327,7 +327,7 @@ public: // But internals only - called from VerilatedModule's
|
||||||
class Verilated {
|
class Verilated {
|
||||||
// MEMBERS
|
// MEMBERS
|
||||||
// Slow path variables
|
// Slow path variables
|
||||||
static VerilatedMutex m_mutex; ///< Mutex for all static members, when VL_THREADED
|
static VerilatedMutex m_mutex; ///< Mutex for s_s/s_ns members, when VL_THREADED
|
||||||
|
|
||||||
static VerilatedVoidCb s_flushCb; ///< Flush callback function
|
static VerilatedVoidCb s_flushCb; ///< Flush callback function
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -356,7 +356,6 @@ typedef unsigned long long vluint64_t; ///< 64-bit unsigned type
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
// Performance counters
|
// Performance counters
|
||||||
|
|
||||||
#if VL_THREADED
|
|
||||||
/// The vluint64_t argument is loaded with a high-performance counter for profiling
|
/// The vluint64_t argument is loaded with a high-performance counter for profiling
|
||||||
/// or 0x0 if not implemeted on this platform
|
/// or 0x0 if not implemeted on this platform
|
||||||
#if defined(__i386__) || defined(__x86_64__)
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
|
@ -371,7 +370,6 @@ typedef unsigned long long vluint64_t; ///< 64-bit unsigned type
|
||||||
// We just silently ignore unknown OSes, as only leads to missing statistics
|
// We just silently ignore unknown OSes, as only leads to missing statistics
|
||||||
# define VL_RDTSC(val) (val) = 0;
|
# define VL_RDTSC(val) (val) = 0;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
// Threading related OS-specific functions
|
// Threading related OS-specific functions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue