aboutsummaryrefslogtreecommitdiff
path: root/machine/htif.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2016-12-06 15:49:59 -0800
committerAndrew Waterman <andrew@sifive.com>2016-12-06 15:49:59 -0800
commitf6b2274af4a91763ecdb94600d7d54d5f7f262b5 (patch)
tree0f4ad8f1df69ea97bb2626573c80854a1838cf53 /machine/htif.h
parente5ed1d115c178b87807a9d7c966dbaa2b3d3a92e (diff)
downloadpk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.zip
pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.gz
pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.bz2
avoid non-standard predefined macros
Diffstat (limited to 'machine/htif.h')
-rw-r--r--machine/htif.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/htif.h b/machine/htif.h
index e66ad06..7107ddb 100644
--- a/machine/htif.h
+++ b/machine/htif.h
@@ -3,7 +3,7 @@
#include <stdint.h>
-#ifdef __riscv64
+#if __riscv_xlen == 64
# define TOHOST_CMD(dev, cmd, payload) \
(((uint64_t)(dev) << 56) | ((uint64_t)(cmd) << 48) | (uint64_t)(payload))
#else