aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2014-09-27 11:01:22 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2014-09-27 11:10:49 -0700
commitbaa8d8be1f1a3d83caf248533fda9abaa3b0ee70 (patch)
tree6fb99977824fefff067f34d7915fcefbc72e6043 /riscv/decode.h
parenteb27fce99c6f711a890c8647edaf077ec8d137d3 (diff)
downloadspike-baa8d8be1f1a3d83caf248533fda9abaa3b0ee70.zip
spike-baa8d8be1f1a3d83caf248533fda9abaa3b0ee70.tar.gz
spike-baa8d8be1f1a3d83caf248533fda9abaa3b0ee70.tar.bz2
Avoid use of __int128_t
It is nonstandard, and GCC doesn't support it on 32-bit platforms. The resulting code for MULH[[S]U] is crappier, but that doesn't really matter, as these instructions are dynamically infrequent.
Diffstat (limited to 'riscv/decode.h')
-rw-r--r--riscv/decode.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/riscv/decode.h b/riscv/decode.h
index d647b2c..b32c6e4 100644
--- a/riscv/decode.h
+++ b/riscv/decode.h
@@ -7,17 +7,13 @@
# error spike requires a two''s-complement c++ implementation
#endif
-#define __STDC_LIMIT_MACROS
-#include <stdint.h>
+#include <cstdint>
#include <string.h>
#include "encoding.h"
#include "config.h"
#include "common.h"
#include <cinttypes>
-typedef int int128_t __attribute__((mode(TI)));
-typedef unsigned int uint128_t __attribute__((mode(TI)));
-
typedef int64_t sreg_t;
typedef uint64_t reg_t;
typedef uint64_t freg_t;