diff --git a/src/arch/riscv/decoder.cc b/src/arch/riscv/decoder.cc index 4fbcc64f65..a02415fae0 100644 --- a/src/arch/riscv/decoder.cc +++ b/src/arch/riscv/decoder.cc @@ -105,8 +105,10 @@ Decoder::decode(PCStateBase &_next_pc) if (compressed(emi)) { next_pc.npc(next_pc.instAddr() + sizeof(machInst) / 2); + next_pc.compressed(true); } else { next_pc.npc(next_pc.instAddr() + sizeof(machInst)); + next_pc.compressed(false); } return decode(emi, next_pc.instAddr());