Merge pull request #802 from freechipsproject/fix-decode-of-instruction-after-ebreak
Check for rvc before declaring illegal instruction after an ebreak.
This commit is contained in:
commit
31415060fe
@ -212,7 +212,7 @@ class Rocket(implicit p: Parameters) extends CoreModule()(p)
|
|||||||
ibuf.io.inst(0).bits.rvc && !csr.io.status.isa('c'-'a') ||
|
ibuf.io.inst(0).bits.rvc && !csr.io.status.isa('c'-'a') ||
|
||||||
id_ctrl.rocc && csr.io.decode.rocc_illegal ||
|
id_ctrl.rocc && csr.io.decode.rocc_illegal ||
|
||||||
id_csr_en && (csr.io.decode.read_illegal || !id_csr_ren && csr.io.decode.write_illegal) ||
|
id_csr_en && (csr.io.decode.read_illegal || !id_csr_ren && csr.io.decode.write_illegal) ||
|
||||||
(id_sfence || id_system_insn) && csr.io.decode.system_illegal
|
!ibuf.io.inst(0).bits.rvc && ((id_sfence || id_system_insn) && csr.io.decode.system_illegal)
|
||||||
// stall decode for fences (now, for AMO.aq; later, for AMO.rl and FENCE)
|
// stall decode for fences (now, for AMO.aq; later, for AMO.rl and FENCE)
|
||||||
val id_amo_aq = id_inst(0)(26)
|
val id_amo_aq = id_inst(0)(26)
|
||||||
val id_amo_rl = id_inst(0)(25)
|
val id_amo_rl = id_inst(0)(25)
|
||||||
|
Loading…
Reference in New Issue
Block a user