aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/cris/crisutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/cris/crisutils.h')
-rw-r--r--tests/tcg/cris/crisutils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tcg/cris/crisutils.h b/tests/tcg/cris/crisutils.h
index 29b71cd7b9..3456b9d50d 100644
--- a/tests/tcg/cris/crisutils.h
+++ b/tests/tcg/cris/crisutils.h
@@ -1,3 +1,6 @@
+#ifndef CRISUTILS_H
+#define CRISUTILS_H 1
+
static char *tst_cc_loc = NULL;
#define cris_tst_cc_init() \
@@ -69,3 +72,5 @@ static inline void cris_tst_cc(const int n, const int z,
if (c) cris_tst_cc_c1(); else cris_tst_cc_c0();
asm volatile ("" : : "g" (_err));
}
+
+#endif