Apply 'make format' [ci skip]
This commit is contained in:
parent
4a4db22cfc
commit
6d836a953c
|
|
@ -275,11 +275,11 @@ void VL_WARN_MT(const char* filename, int linenum, const char* hier, const char*
|
||||||
void Verilated::loadVpiLib(const std::string& arg) VL_MT_UNSAFE {
|
void Verilated::loadVpiLib(const std::string& arg) VL_MT_UNSAFE {
|
||||||
#if VM_VPI
|
#if VM_VPI
|
||||||
if (arg.empty()) return;
|
if (arg.empty()) return;
|
||||||
# ifdef _WIN32
|
#ifdef _WIN32
|
||||||
VL_FATAL_MT("", 0, "",
|
VL_FATAL_MT("", 0, "",
|
||||||
"+verilator+vpi+: runtime VPI library loading is not supported on"
|
"+verilator+vpi+: runtime VPI library loading is not supported on"
|
||||||
" Windows; link the VPI code into the model instead");
|
" Windows; link the VPI code into the model instead");
|
||||||
# else
|
#else
|
||||||
using vlog_startup_t = void (*)();
|
using vlog_startup_t = void (*)();
|
||||||
// Split <lib>:<bootstrap> on the last ':'
|
// Split <lib>:<bootstrap> on the last ':'
|
||||||
const std::string::size_type colon_pos = arg.rfind(':');
|
const std::string::size_type colon_pos = arg.rfind(':');
|
||||||
|
|
@ -306,12 +306,12 @@ void Verilated::loadVpiLib(const std::string& arg) VL_MT_UNSAFE {
|
||||||
vlog_startup_t* routinesp
|
vlog_startup_t* routinesp
|
||||||
= reinterpret_cast<vlog_startup_t*>(dlsym(handle, "vlog_startup_routines"));
|
= reinterpret_cast<vlog_startup_t*>(dlsym(handle, "vlog_startup_routines"));
|
||||||
if (!routinesp)
|
if (!routinesp)
|
||||||
VL_FATAL_MT("", 0, "",
|
VL_FATAL_MT(
|
||||||
(std::string{"Cannot find 'vlog_startup_routines' in: "} + libpath)
|
"", 0, "",
|
||||||
.c_str());
|
(std::string{"Cannot find 'vlog_startup_routines' in: "} + libpath).c_str());
|
||||||
for (int j = 0; routinesp[j]; ++j) routinesp[j]();
|
for (int j = 0; routinesp[j]; ++j) routinesp[j]();
|
||||||
}
|
}
|
||||||
# endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// Never reached: the command-line handler only calls this when compiled with --vpi.
|
// Never reached: the command-line handler only calls this when compiled with --vpi.
|
||||||
(void)arg;
|
(void)arg;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue