Commit 5122454f authored by Davide Pala's avatar Davide Pala
Browse files

Removed cast to ac_int<5, false> for shift amount in core

shamt type is already ac_int<5, false> no need to cast.
parent 933f8186
......@@ -295,9 +295,9 @@ void execute(struct DCtoEx dctoEx, struct ExtoMem& extoMem)
break;
case RISCV_OPI_SRI:
if (dctoEx.funct7.slc<1>(5)) // SRAI
extoMem.result = dctoEx.lhs >> (ac_int<5, false>)shamt;
extoMem.result = dctoEx.lhs >> shamt;
else // SRLI
extoMem.result = (ac_int<32, false>)dctoEx.lhs >> (ac_int<5, false>)shamt;
extoMem.result = (ac_int<32, false>)dctoEx.lhs >> shamt;
break;
}
break;
......
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