diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-03-24 18:55:59 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-03-24 18:55:59 -0700 |
commit | d9e887bd18aedc9b7c6cad1fd253a111a33426e2 (patch) | |
tree | b62c4c9943edaefdeeda7bf696920cd62d88b6d6 | |
parent | 9b215d8bb8d642f49fb8be43bfcd356641dc2329 (diff) | |
download | riscv-pk-d9e887bd18aedc9b7c6cad1fd253a111a33426e2.zip riscv-pk-d9e887bd18aedc9b7c6cad1fd253a111a33426e2.tar.gz riscv-pk-d9e887bd18aedc9b7c6cad1fd253a111a33426e2.tar.bz2 |
[pk] 32bit kernel + FPU emulation now compiles
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | pk/fp.c | 4 |
3 files changed, 5 insertions, 2 deletions
@@ -3913,6 +3913,8 @@ fi CFLAGS="-Wall -Os -std=gnu99" +LIBS="-lgcc" + #------------------------------------------------------------------------- # MCPPBS subproject list diff --git a/configure.ac b/configure.ac index 45bbaae..bbd9b43 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,7 @@ AC_HEADER_STDC #------------------------------------------------------------------------- AC_SUBST([CFLAGS], ["-Wall -Os -std=gnu99"]) +AC_SUBST([LIBS], ["-lgcc"]) #------------------------------------------------------------------------- # MCPPBS subproject list @@ -57,8 +57,8 @@ int emulate_fp(trapframe_t* tf) uint32_t frs2s = get_fp_reg(RRS2, 0); uint32_t frs3s = get_fp_reg(RRS3, 0); - uint64_t effective_address_load = XRS1 + imm; - uint64_t effective_address_store = XRS1 + bimm; + long effective_address_load = XRS1 + imm; + long effective_address_store = XRS1 + bimm; softfloat_exceptionFlags = 0; softfloat_roundingMode = (RM & 4) ? (RM & 3) : ((fp_state.fsr >> 5) & 3); |