diff options
author | Andrew Waterman <andrew@sifive.com> | 2016-12-06 15:49:59 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2016-12-06 15:49:59 -0800 |
commit | f6b2274af4a91763ecdb94600d7d54d5f7f262b5 (patch) | |
tree | 0f4ad8f1df69ea97bb2626573c80854a1838cf53 /machine/muldiv_emulation.c | |
parent | e5ed1d115c178b87807a9d7c966dbaa2b3d3a92e (diff) | |
download | pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.zip pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.gz pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.bz2 |
avoid non-standard predefined macros
Diffstat (limited to 'machine/muldiv_emulation.c')
-rw-r--r-- | machine/muldiv_emulation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/machine/muldiv_emulation.c b/machine/muldiv_emulation.c index d0583c5..1fde345 100644 --- a/machine/muldiv_emulation.c +++ b/machine/muldiv_emulation.c @@ -2,7 +2,7 @@ #ifndef __riscv_muldiv -#ifdef __riscv64 +#if __riscv_xlen == 64 typedef __int128 double_int; #else typedef int64_t double_int; @@ -37,7 +37,7 @@ DECLARE_EMULATION_FUNC(emulate_mul_div) SET_RD(insn, regs, val); } -#ifdef __riscv64 +#if __riscv_xlen == 64 DECLARE_EMULATION_FUNC(emulate_mul_div32) { |