aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2019-07-11 15:11:27 -0700
committerAndrew Waterman <andrew@sifive.com>2019-07-11 15:11:27 -0700
commitcbb979ddfb5201287c5d60d335bf1f12649e0a04 (patch)
treee577e39e5d7a327bb8681993e689af5616c340bf /riscv/decode.h
parent364e9c641257738b3f1ba9f23d9fe0a0ccafce06 (diff)
downloadspike-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.h3
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;