diff options
author | Andrew Waterman <andrew@sifive.com> | 2019-07-11 15:11:27 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2019-07-11 15:11:27 -0700 |
commit | cbb979ddfb5201287c5d60d335bf1f12649e0a04 (patch) | |
tree | e577e39e5d7a327bb8681993e689af5616c340bf /riscv/decode.h | |
parent | 364e9c641257738b3f1ba9f23d9fe0a0ccafce06 (diff) | |
download | spike-cbb979ddfb5201287c5d60d335bf1f12649e0a04.zip spike-cbb979ddfb5201287c5d60d335bf1f12649e0a04.tar.gz spike-cbb979ddfb5201287c5d60d335bf1f12649e0a04.tar.bz2 |
Fix support for 32-bit hosts (but no V extension in that case!)
Diffstat (limited to 'riscv/decode.h')
-rw-r--r-- | riscv/decode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/decode.h b/riscv/decode.h index c588a86..087be2d 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -24,8 +24,11 @@ typedef int64_t sreg_t; typedef uint64_t reg_t; + +#ifdef __SIZEOF_INT128__ typedef __int128 int128_t; typedef unsigned __int128 uint128_t; +#endif const int NXPR = 32; const int NFPR = 32; |