diff options
author | Prashanth Mundkur <prashanth.mundkur@gmail.com> | 2019-11-26 14:50:16 -0800 |
---|---|---|
committer | Prashanth Mundkur <prashanth.mundkur@gmail.com> | 2019-11-26 14:50:16 -0800 |
commit | 1913d685b15c8c9dfc1f43fa6a64e72d338a56d4 (patch) | |
tree | ba9c67663f3ae11a2bf5b16c3659e55a1653a599 /Makefile | |
parent | 00acd94fc619e4189f8b0c9493b04931bb7dfbee (diff) | |
download | sail-riscv-1913d685b15c8c9dfc1f43fa6a64e72d338a56d4.zip sail-riscv-1913d685b15c8c9dfc1f43fa6a64e72d338a56d4.tar.gz sail-riscv-1913d685b15c8c9dfc1f43fa6a64e72d338a56d4.tar.bz2 |
Fix RV32 build for F/D extensions.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -7,21 +7,24 @@ else ifeq ($(ARCH),64) override ARCH := RV64 endif +# Currently, we only have F with RV32, and both F and D with RV64. ifeq ($(ARCH),RV32) SAIL_XLEN := riscv_xlen32.sail + SAIL_FLEN := riscv_flen_F.sail else ifeq ($(ARCH),RV64) SAIL_XLEN := riscv_xlen64.sail + SAIL_FLEN := riscv_flen_D.sail else $(error '$(ARCH)' is not a valid architecture, must be one of: RV32, RV64) endif -# For now, F and D extensions cannot be separated, and are only available in RV64. -SAIL_FLEN := riscv_flen_D.sail - # Instruction sources, depending on target SAIL_CHECK_SRCS = riscv_addr_checks_common.sail riscv_addr_checks.sail riscv_misa_ext.sail SAIL_DEFAULT_INST = riscv_insts_base.sail riscv_insts_aext.sail riscv_insts_cext.sail riscv_insts_mext.sail riscv_insts_zicsr.sail riscv_insts_next.sail -SAIL_DEFAULT_INST += riscv_softfloat_interface.sail riscv_insts_fext.sail riscv_insts_dext.sail +SAIL_DEFAULT_INST += riscv_softfloat_interface.sail riscv_insts_fext.sail +ifeq ($(ARCH),RV64) +SAIL_DEFAULT_INST +=riscv_insts_dext.sail +endif SAIL_SEQ_INST = $(SAIL_DEFAULT_INST) riscv_jalr_seq.sail SAIL_RMEM_INST = $(SAIL_DEFAULT_INST) riscv_jalr_rmem.sail riscv_insts_rmem.sail |