diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-04-19 18:30:01 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-04-19 18:30:01 -0400 |
commit | 522b8015df6cf43d56f540f2a6da063e01485e96 (patch) | |
tree | 86c413a5fef2b2fe670f3a6a366fe7ae0d583188 | |
parent | 6618ca637302714494149b326ca13a5971381ccc (diff) |
fix bugs
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | include/atomic.h | 1 | ||||
-rw-r--r-- | src/pgm.cpp | 4 |
3 files changed, 4 insertions, 3 deletions
@@ -9,7 +9,7 @@ host-arch := $(shell uname -m | \ | |||
9 | -include .config | 9 | -include .config |
10 | 10 | ||
11 | # ARCH -- what architecture are we compiling for? | 11 | # ARCH -- what architecture are we compiling for? |
12 | ARCH ?= arm | 12 | ARCH ?= ${host-arch} |
13 | 13 | ||
14 | # LIBLITMUS -- where to find liblitmus? | 14 | # LIBLITMUS -- where to find liblitmus? |
15 | LIBLITMUS ?= ../liblitmus | 15 | LIBLITMUS ?= ../liblitmus |
diff --git a/include/atomic.h b/include/atomic.h index 59c6ec6..8f5d9d8 100644 --- a/include/atomic.h +++ b/include/atomic.h | |||
@@ -9,4 +9,5 @@ static inline void __sync_pause() | |||
9 | asm volatile("pause": : :"memory"); | 9 | asm volatile("pause": : :"memory"); |
10 | #else | 10 | #else |
11 | __sync_synchronize(); | 11 | __sync_synchronize(); |
12 | #endif | ||
12 | } | 13 | } |
diff --git a/src/pgm.cpp b/src/pgm.cpp index b6af9a4..b7215df 100644 --- a/src/pgm.cpp +++ b/src/pgm.cpp | |||
@@ -4119,9 +4119,9 @@ int pgm_print_graph(graph_t graph, FILE* outs) | |||
4119 | (is_signal_driven(e) && e->ops != &pgm_cv_edge_ops) ? "fast_" : "", | 4119 | (is_signal_driven(e) && e->ops != &pgm_cv_edge_ops) ? "fast_" : "", |
4120 | edgeTypeStr(e), | 4120 | edgeTypeStr(e), |
4121 | namebuf, | 4121 | namebuf, |
4122 | (unsigned long) e->attr.nr_consume, | 4122 | e->attr.nr_consume, |
4123 | thresh, | 4123 | thresh, |
4124 | (unsigned long) e->attr.nr_produce); | 4124 | e->attr.nr_produce); |
4125 | } | 4125 | } |
4126 | 4126 | ||
4127 | fprintf(outs, "}\n"); | 4127 | fprintf(outs, "}\n"); |