Commit d9037003 authored by Lauric Desauw's avatar Lauric Desauw
Browse files

fixing bug in basic_simulator.cpp : csr was recognize as a syscall

parent e5f9fdc8
......@@ -372,7 +372,7 @@ ac_int<32, true> BasicSimulator::ldd(ac_int<32, false> addr)
void BasicSimulator::solveSyscall()
{
if((core.extoMem.opCode == RISCV_SYSTEM) && !core.stallSignals[2] && !core.stallIm && !core.stallDm && !core.stallAlu){
if((core.extoMem.opCode == RISCV_SYSTEM) && core.extoMem.instruction.slc<25>(7) == 0 && !core.stallSignals[2] && !core.stallIm && !core.stallDm && !core.stallAlu){
ac_int<32, true> syscallId = core.regFile[17];
ac_int<32, true> arg1 = core.regFile[10];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment