From: Clifford Wolf Date: Fri, 24 May 2013 10:32:06 +0000 (+0200) Subject: Added log_abort() api X-Git-Tag: yosys-0.2.0~622 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ccd2a93439098e333a2f41ae6d1ce3d92222f167;p=yosys.git Added log_abort() api --- diff --git a/kernel/log.h b/kernel/log.h index 9023854d0..6d1900346 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -48,4 +48,6 @@ void log_flush(); const char *log_signal(const RTLIL::SigSpec &sig, bool autoint = true); +#define log_abort() log_error("Abort in %s:%d.\n", __FILE__, __LINE__) + #endif diff --git a/passes/opt/opt_rmdff.cc b/passes/opt/opt_rmdff.cc index a1a9e7f3b..a84bf4376 100644 --- a/passes/opt/opt_rmdff.cc +++ b/passes/opt/opt_rmdff.cc @@ -66,7 +66,7 @@ static bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff) val_rv = dff->parameters["\\ARST_VALUE"]; } else - log_error("abort."); + log_abort(); assign_map.apply(sig_d); assign_map.apply(sig_q);