Added log_abort() api
authorClifford Wolf <clifford@clifford.at>
Fri, 24 May 2013 10:32:06 +0000 (12:32 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 24 May 2013 10:32:06 +0000 (12:32 +0200)
kernel/log.h
passes/opt/opt_rmdff.cc

index 9023854d0fef7b74c4cee9f14ffbae0a3e5e7189..6d19003461c895f72666c9ebd820091231c7cff8 100644 (file)
@@ -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
index a1a9e7f3b7f680509c37fc3e2b1f52b77e78d1e5..a84bf4376b2b92f501c39aa8b49528f335e4d1a8 100644 (file)
@@ -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);