summaryrefslogtreecommitdiff
path: root/debian/patches/kfreebsd-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/kfreebsd-support.patch')
-rw-r--r--debian/patches/kfreebsd-support.patch26
1 files changed, 13 insertions, 13 deletions
diff --git a/debian/patches/kfreebsd-support.patch b/debian/patches/kfreebsd-support.patch
index 49be947a..549bc22d 100644
--- a/debian/patches/kfreebsd-support.patch
+++ b/debian/patches/kfreebsd-support.patch
@@ -17,7 +17,7 @@ Subject: Change yosys to look for the #define constant "__unix__" instead of
7 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/kernel/driver.cc b/kernel/driver.cc
-index 02e332f..dacffb1 100644
+index 5cfc417..dfc7d25 100644
--- a/kernel/driver.cc
+++ b/kernel/driver.cc
@@ -30,7 +30,7 @@
@@ -29,7 +29,7 @@ index 02e332f..dacffb1 100644
# include <sys/types.h>
# include <unistd.h>
#endif
-@@ -382,7 +382,7 @@ int main(int argc, char **argv)
+@@ -409,7 +409,7 @@ int main(int argc, char **argv)
#else
std::string meminfo;
std::string stats_divider = ", ";
@@ -38,7 +38,7 @@ index 02e332f..dacffb1 100644
std::ifstream statm;
statm.open(stringf("/proc/%lld/statm", (long long)getpid()));
if (statm.is_open()) {
-@@ -436,7 +436,7 @@ int main(int argc, char **argv)
+@@ -463,7 +463,7 @@ int main(int argc, char **argv)
}
}
@@ -48,7 +48,7 @@ index 02e332f..dacffb1 100644
{
string filename;
diff --git a/kernel/log.cc b/kernel/log.cc
-index 4f395c7..8e1279f 100644
+index 3f1d888..5d78c08 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -25,7 +25,7 @@
@@ -60,7 +60,7 @@ index 4f395c7..8e1279f 100644
# include <dlfcn.h>
#endif
-@@ -264,7 +264,7 @@ void log_pop()
+@@ -278,7 +278,7 @@ void log_pop()
log_flush();
}
@@ -69,7 +69,7 @@ index 4f395c7..8e1279f 100644
void log_backtrace(const char *prefix, int levels)
{
if (levels <= 0) return;
-@@ -423,7 +423,7 @@ void log_cell(RTLIL::Cell *cell, std::string indent)
+@@ -462,7 +462,7 @@ void log_cell(RTLIL::Cell *cell, std::string indent)
// ---------------------------------------------------
// This is the magic behind the code coverage counters
// ---------------------------------------------------
@@ -79,10 +79,10 @@ index 4f395c7..8e1279f 100644
dict<std::string, std::pair<std::string, int>> extra_coverage_data;
diff --git a/kernel/log.h b/kernel/log.h
-index 28baf98..f2f3a5e 100644
+index 53480db..4cf7d00 100644
--- a/kernel/log.h
+++ b/kernel/log.h
-@@ -102,7 +102,7 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
+@@ -106,7 +106,7 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
// This is the magic behind the code coverage counters
// ---------------------------------------------------
@@ -92,10 +92,10 @@ index 28baf98..f2f3a5e 100644
#define cover(_id) do { \
static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1), used)) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
-index eba1aef..cb14c93 100644
+index 08fee97..8b071f0 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
-@@ -64,7 +64,7 @@ std::vector<void*> memhasher_store;
+@@ -66,7 +66,7 @@ std::vector<void*> memhasher_store;
void memhasher_on()
{
@@ -104,11 +104,11 @@ index eba1aef..cb14c93 100644
memhasher_rng += time(NULL) << 16 ^ getpid();
#endif
memhasher_store.resize(0x10000);
-@@ -622,7 +622,7 @@ struct TclPass : public Pass {
+@@ -647,7 +647,7 @@ struct TclPass : public Pass {
} TclPass;
#endif
--#if defined(__linux__)
+-#if defined(__linux__) || defined(__CYGWIN__)
+#if defined(__unix__)
std::string proc_self_dirname()
{
@@ -149,7 +149,7 @@ index ee92a6e..8ad9902 100644
#endif
diff --git a/passes/cmds/cover.cc b/passes/cmds/cover.cc
-index 5644066..e3910eb 100644
+index 1475475..1918b54 100644
--- a/passes/cmds/cover.cc
+++ b/passes/cmds/cover.cc
@@ -128,7 +128,7 @@ struct CoverPass : public Pass {