ArchC / riscv

RISC-V processor model
9 stars 9 forks source link

An error while compiling #5

Open KenELL opened 6 years ago

KenELL commented 6 years ago

Hi, I encountered a compiling error. Please see the error message below. Btw, I'm using ArchC version 2.4.1.

In file included from riscv.cpp:17:0: riscv_isa.cpp: In member function ‘void riscv_parms::riscv_isa::behavior_FEQ_S(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)’: riscv_isa.cpp:1018:29: error: ‘isnan’ was not declared in this scope if ((isnan(load_float(rs1)) == 1) || (isnan(load_float(rs2)) == 1)) { ^ riscv_isa.cpp:1018:29: note: suggested alternative: In file included from /usr/local/systemc-2.3.1/include/systemc.h:45:0, from riscv.H:19, from riscv.cpp:16: /usr/include/c++/5/cmath:641:5: note: ‘std::isnan’ isnan(_Tp __x)

Narutoworld commented 5 years ago

I have the same issue, did you get it fixed?