From 7a44ee6004672c6644c33847d86201f2a8c8acde Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Sat, 28 Mar 2015 10:40:43 +0000 Subject: add coherence call for weakly-ordered cpus, default to nop --- emu/port/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emu/port/main.c') diff --git a/emu/port/main.c b/emu/port/main.c index 66ebb6a9..c45a33cf 100644 --- a/emu/port/main.c +++ b/emu/port/main.c @@ -227,6 +227,11 @@ putenvqv(char *name, char **v, int n, int conf) free(val); } +static void +noop(void) +{ +} + void main(int argc, char *argv[]) { @@ -234,6 +239,8 @@ main(int argc, char *argv[]) char *enva[20]; int envc; + if(coherence == nil) + coherence = noop; quotefmtinstall(); savestartup(argc, argv); /* set default root now, so either $EMU or -r can override it later */ -- cgit v1.2.3