diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-04-18 10:40:21 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-04-18 10:40:21 -0700 |
commit | 770dcd9f1f468436292439eef53ff1888f1b8bad (patch) | |
tree | e9b87d90392047439884d371f83b701f266992f5 /machine/unprivileged_memory.h | |
parent | 0f0ac647fe646529c51b5f5c68221502dc88d239 (diff) | |
download | riscv-pk-770dcd9f1f468436292439eef53ff1888f1b8bad.zip riscv-pk-770dcd9f1f468436292439eef53ff1888f1b8bad.tar.gz riscv-pk-770dcd9f1f468436292439eef53ff1888f1b8bad.tar.bz2 |
Fix RV32 compilation error
Diffstat (limited to 'machine/unprivileged_memory.h')
-rw-r--r-- | machine/unprivileged_memory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/machine/unprivileged_memory.h b/machine/unprivileged_memory.h index 67ae98b..787f5f8 100644 --- a/machine/unprivileged_memory.h +++ b/machine/unprivileged_memory.h @@ -40,12 +40,13 @@ DECLARE_UNPRIVILEGED_LOAD_FUNCTION(int32_t, lw) DECLARE_UNPRIVILEGED_STORE_FUNCTION(uint8_t, sb) DECLARE_UNPRIVILEGED_STORE_FUNCTION(uint16_t, sh) DECLARE_UNPRIVILEGED_STORE_FUNCTION(uint32_t, sw) -DECLARE_UNPRIVILEGED_LOAD_FUNCTION(uint32_t, LWU) #if __riscv_xlen == 64 +DECLARE_UNPRIVILEGED_LOAD_FUNCTION(uint32_t, lwu) DECLARE_UNPRIVILEGED_LOAD_FUNCTION(uint64_t, ld) DECLARE_UNPRIVILEGED_STORE_FUNCTION(uint64_t, sd) DECLARE_UNPRIVILEGED_LOAD_FUNCTION(uintptr_t, ld) #else +DECLARE_UNPRIVILEGED_LOAD_FUNCTION(uint32_t, lw) DECLARE_UNPRIVILEGED_LOAD_FUNCTION(uintptr_t, lw) static inline uint64_t load_uint64_t(const uint64_t* addr, uintptr_t mepc) |