aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungRyeol Lee <zizztux.lee@lge.com>2016-03-22 15:36:24 +0900
committerSeungRyeol Lee <zizztux.lee@lge.com>2016-03-22 15:36:24 +0900
commit10e9fa36090a73a9416012ebbf36eec5512e37c1 (patch)
tree409e26a1838041f64a41d7e51cd07450df80cafc
parentd5278834830bdd2cb8586f25fe05ae917b0eb949 (diff)
downloadriscv-pk-10e9fa36090a73a9416012ebbf36eec5512e37c1.zip
riscv-pk-10e9fa36090a73a9416012ebbf36eec5512e37c1.tar.gz
riscv-pk-10e9fa36090a73a9416012ebbf36eec5512e37c1.tar.bz2
fix multilib build error. it's type casting related.
-rw-r--r--machine/fp_ldst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/fp_ldst.c b/machine/fp_ldst.c
index 9d0a49f..b3d57e5 100644
--- a/machine/fp_ldst.c
+++ b/machine/fp_ldst.c
@@ -22,7 +22,7 @@ DECLARE_EMULATION_FUNC(emulate_float_load)
#ifdef __riscv64
val = load_uint64_t((void *)addr, mepc);
#else
- val = load_uint32_t(addr, mepc);
+ val = load_uint32_t((void *)addr, mepc);
val += (uint64_t)load_uint32_t((void *)(addr + 4), mepc) << 32;
#endif
SET_F64_RD(insn, regs, val);