diff options
| author | Richard Miller <millerresearch@gmail.com> | 2020-11-09 18:11:51 +0000 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2020-11-09 18:11:51 +0000 |
| commit | ec7a4b742467a19160dfa5322e3e0880e4abed48 (patch) | |
| tree | 523d2f81946b1e0abe4afddf1d2fce7e1525b7d7 /utils/ic/machcap.c | |
| parent | ed97654bd7a11d480b44505c8300d06b42e5fefe (diff) | |
| parent | 6e84dc968bc4eaf047fbefcba2f670940718dda8 (diff) | |
Merged in millerresearch/inferno-riscv/utils-riscv (pull request #8)
Add toolchain and libmach support for riscv and riscv64
Approved-by: Charles Forsyth <charles.forsyth@gmail.com>
Diffstat (limited to 'utils/ic/machcap.c')
| -rw-r--r-- | utils/ic/machcap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/ic/machcap.c b/utils/ic/machcap.c new file mode 100644 index 00000000..4da0aa91 --- /dev/null +++ b/utils/ic/machcap.c @@ -0,0 +1,9 @@ +#include "gc.h" + +int +machcap(Node *n) +{ + if(n == Z) /* test */ + return thechar == 'j'; + return 0; +} |
