aboutsummaryrefslogtreecommitdiff
path: root/riscv/common.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-12 20:27:10 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-12 20:27:10 -0700
commit740f981cfd55604d46598144dccac26dd53f643c (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /riscv/common.h
parentc0ebf99d6bb3ef3cf252703b50b849bcbaa2ec59 (diff)
downloadspike-740f981cfd55604d46598144dccac26dd53f643c.zip
spike-740f981cfd55604d46598144dccac26dd53f643c.tar.gz
spike-740f981cfd55604d46598144dccac26dd53f643c.tar.bz2
[sim] renamed to riscv-isa-run
Diffstat (limited to 'riscv/common.h')
-rw-r--r--riscv/common.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/riscv/common.h b/riscv/common.h
deleted file mode 100644
index 7dd6570..0000000
--- a/riscv/common.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef _RISCV_COMMON_H
-#define _RISCV_COMMON_H
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-#ifdef __cplusplus
-# include <stdexcept>
-# define print_and_die(s) throw std::runtime_error(s)
-#else
-# define print_and_die(s) do { fprintf(stderr,"%s\n",s); abort(); } while(0)
-#endif
-
-#define demand(cond,str,...) \
- do { if(!(cond)) { \
- char __str[256]; \
- snprintf(__str,256,"in %s, line %d: " str, \
- __FILE__,__LINE__,##__VA_ARGS__); \
- print_and_die(__str); \
- } } while(0)
-
-#define static_assert(x) switch (x) case 0: case (x):
-
-#define likely(x) __builtin_expect(x, 1)
-#define unlikely(x) __builtin_expect(x, 0)
-
-#endif