Skip to content

Commit

Permalink
Merge pull request #3692 from chipsalliance/vset-trap
Browse files Browse the repository at this point in the history
vsets should trap when mstatus.VS is off
  • Loading branch information
jerryz123 authored Oct 30, 2024
2 parents 1fb00b0 + 4c7c91c commit 0a9a921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
(id_ctrl.mul || id_ctrl.div) && !csr.io.status.isa('m'-'a') ||
id_ctrl.amo && !csr.io.status.isa('a'-'a') ||
id_ctrl.fp && (csr.io.decode(0).fp_illegal || (io.fpu.illegal_rm && !id_ctrl.vec)) ||
(id_ctrl.vec) && (csr.io.decode(0).vector_illegal || csr.io.vector.map(_.vconfig.vtype.vill).getOrElse(false.B)) ||
id_set_vconfig && csr.io.decode(0).vector_illegal ||
id_ctrl.vec && (csr.io.decode(0).vector_illegal || csr.io.vector.map(_.vconfig.vtype.vill).getOrElse(false.B)) ||
id_ctrl.dp && !csr.io.status.isa('d'-'a') ||
ibuf.io.inst(0).bits.rvc && !csr.io.status.isa('c'-'a') ||
id_raddr2_illegal && id_ctrl.rxs2 ||
Expand Down

0 comments on commit 0a9a921

Please sign in to comment.