aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-03-23 13:24:10 -0700
committerAndrew Waterman <andrew@sifive.com>2017-03-23 13:24:10 -0700
commite83a032060865550e33659a69a86870f9da880b1 (patch)
tree7efabd7b1f8da0533119c2c0a23dbabb5e8d6b0a /riscv/decode.h
parent46f1423c6566aee512fbc7a8ef6ff4aae2b7d1fb (diff)
downloadriscv-isa-sim-e83a032060865550e33659a69a86870f9da880b1.zip
riscv-isa-sim-e83a032060865550e33659a69a86870f9da880b1.tar.gz
riscv-isa-sim-e83a032060865550e33659a69a86870f9da880b1.tar.bz2
Require little-endian host
Diffstat (limited to 'riscv/decode.h')
-rw-r--r--riscv/decode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/decode.h b/riscv/decode.h
index d82767d..061b5b6 100644
--- a/riscv/decode.h
+++ b/riscv/decode.h
@@ -7,6 +7,10 @@
# error spike requires a two''s-complement c++ implementation
#endif
+#ifdef WORDS_BIGENDIAN
+# error spike requires a little-endian host
+#endif
+
#include <cstdint>
#include <string.h>
#include <strings.h>