From ccd2a93439098e333a2f41ae6d1ce3d92222f167 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 24 May 2013 12:32:06 +0200 Subject: [PATCH] Added log_abort() api --- kernel/log.h | 2 ++ passes/opt/opt_rmdff.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2