diff --git a/target/common/test/verilator_lib.cc b/target/common/test/verilator_lib.cc index 4b9b18a12..3e1ae89e1 100644 --- a/target/common/test/verilator_lib.cc +++ b/target/common/test/verilator_lib.cc @@ -83,7 +83,7 @@ void Sim::main() { } // namespace sim // Verilator callback to get the current time. -double sc_time_stamp() { return sim::TIME * TIME_CYCLES_TO_TIMESTAMP; } +double sc_time_stamp() { return sim::TIME * sim::TIME_CYCLES_TO_TIMESTAMP; } // DPI calls. void tb_memory_read(long long addr, int len, const svOpenArrayHandle data) {