summaryrefslogtreecommitdiff
path: root/emu/port/main.c
AgeCommit message (Collapse)Author
2021-10-11remove duplicate vflag definitionCharles Forsyth
2021-10-11allow vflag > 1Charles Forsyth
2017-01-12Revert dbaf2f1a92f6 and instead move initialization of "coherence" toValery Ushakov
emu/NetBSD/os.c As explained in inferno-os issue 335: > The definition of coherence deliberately takes advantage of a C rule > to avoid anyone having to change an existing fork of emu (eg, for a > new platform), to account for the arrival of "coherence". If a > given port doesn't define it, it will be nil and main will fill it > in. If as on Windows or now NetBSD, it needs to be defined from the > start, the os.c for that platform should do it, but still no other > platforms need source changes.
2016-06-02fns.h should declare "coherence", not define it. Move the definitionValery Ushakov
to main.c and init it "nofence". This is required because with dynamic linking init/fini code runs before main() has a chance to init it. Since emu provides its own malloc, init/fini code that uses malloc will eventually call coherence() and crash if it's not inited.
2015-04-02rename noop to extern nofenceCharles Forsyth
2015-03-28add coherence call for weakly-ordered cpus, default to nopCharles Forsyth
2009-07-2820090728-1744forsyth
2008-07-0920080709-0917Charles.Forsyth
2008-07-0720080707-1343Charles.Forsyth
2008-06-1220080612-2245Charles.Forsyth
2007-02-2820070228a make array bounds checks the default in jitsCharles.Forsyth
2007-01-1520070115Charles.Forsyth
2006-12-2220060303aCharles.Forsyth