aboutsummaryrefslogtreecommitdiffstats
path: root/trace.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-09-26 19:18:28 -0700
committerH. Peter Anvin <hpa@zytor.com>2018-09-26 19:18:28 -0700
commit4155ccca548520b7ccb63d23970f0a519e163ea9 (patch)
treed3f6aed7a36da8bcce453461292d9d5cd1ece510 /trace.h
parent61f836299b17612e4bfa05c23b72b5b587ea472f (diff)
downloadabc80sim-4155ccca548520b7ccb63d23970f0a519e163ea9.tar.gz
abc80sim-4155ccca548520b7ccb63d23970f0a519e163ea9.tar.xz
abc80sim-4155ccca548520b7ccb63d23970f0a519e163ea9.zip
trace: use an inline for testing trace; move z80_interrupt_eoi to z80.c
Diffstat (limited to 'trace.h')
-rw-r--r--trace.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/trace.h b/trace.h
index 1d9dd11..2685697 100644
--- a/trace.h
+++ b/trace.h
@@ -15,6 +15,11 @@ enum tracing {
TRACE_ALL = 0x1f
};
-extern enum tracing tracing;
+extern enum tracing traceflags;
+
+static inline bool tracing(enum tracing flags)
+{
+ return unlikely(traceflags & flags);
+}
#endif /* TRACE_H */