mirror of https://github.com/YosysHQ/yosys.git
Merge remote-tracking branch 'upstream'
This commit is contained in:
commit
36c244aeda
2
Makefile
2
Makefile
|
@ -267,7 +267,7 @@ CXX = emcc
|
|||
CXXFLAGS := -std=$(CXXSTD) $(filter-out -fPIC -ggdb,$(CXXFLAGS))
|
||||
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H -DABC_MEMALIGN=8 -Wno-c++11-narrowing"
|
||||
EMCC_CXXFLAGS := -Os -Wno-warn-absolute-paths
|
||||
EMCC_LINKFLAGS := --memory-init-file 0 --embed-file share
|
||||
EMCC_LINKFLAGS := --embed-file share
|
||||
EMCC_LINKFLAGS += -s NO_EXIT_RUNTIME=1
|
||||
EMCC_LINKFLAGS += -s EXPORTED_FUNCTIONS="['_main','_run','_prompt','_errmsg','_memset']"
|
||||
EMCC_LINKFLAGS += -s TOTAL_MEMORY=134217728
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
# include <glob.h>
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
# include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
|
@ -901,10 +901,14 @@ std::string proc_self_dirname()
|
|||
buflen--;
|
||||
return std::string(path, buflen);
|
||||
}
|
||||
#elif defined(__FreeBSD__)
|
||||
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
std::string proc_self_dirname()
|
||||
{
|
||||
#ifdef __NetBSD__
|
||||
int mib[4] = {CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_PATHNAME};
|
||||
#else
|
||||
int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
|
||||
#endif
|
||||
size_t buflen;
|
||||
char *buffer;
|
||||
std::string path;
|
||||
|
|
|
@ -339,6 +339,8 @@ struct EquivSimplePass : public Pass {
|
|||
CellTypes ct;
|
||||
ct.setup_internals();
|
||||
ct.setup_stdcells();
|
||||
ct.setup_internals_ff();
|
||||
ct.setup_stdcells_mem();
|
||||
|
||||
for (auto module : design->selected_modules())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue