From f3a2d4e522914fa714f0d322d8c53131b1780991 Mon Sep 17 00:00:00 2001 From: Liphen Date: Fri, 1 Dec 2023 16:45:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(id):=20=E4=BF=AE=E5=A4=8Dbreakpoint?= =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chisel/playground/src/pipeline/decoder/DecoderUnit.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chisel/playground/src/pipeline/decoder/DecoderUnit.scala b/chisel/playground/src/pipeline/decoder/DecoderUnit.scala index 43a5c3b..2d657f0 100644 --- a/chisel/playground/src/pipeline/decoder/DecoderUnit.scala +++ b/chisel/playground/src/pipeline/decoder/DecoderUnit.scala @@ -125,7 +125,7 @@ class DecoderUnit(implicit val config: CpuConfig) extends Module with HasExcepti io.executeStage.inst0.ex.exception(instrAddrMisaligned) := pc(0)(1, 0).orR || io.fetchUnit.target(1, 0).orR && io.fetchUnit.branch io.executeStage.inst0.ex.exception(breakPoint) := info(0).inst(31, 20) === privEbreak && - info(0).op === CSROpType.jmp + info(0).op === CSROpType.jmp && info(0).fusel === FuType.csr io.executeStage.inst0.ex.exception(ecallM) := info(0).inst(31, 20) === privEcall && info(0).op === CSROpType.jmp && priv_mode === ModeM && info(0).fusel === FuType.csr io.executeStage.inst0.ex.exception(ecallS) := info(0).inst(31, 20) === privEcall && @@ -166,7 +166,7 @@ class DecoderUnit(implicit val config: CpuConfig) extends Module with HasExcepti io.executeStage.inst1.ex.exception(instrAddrMisaligned) := pc(1)(1, 0).orR || io.fetchUnit.target(1, 0).orR && io.fetchUnit.branch io.executeStage.inst1.ex.exception(breakPoint) := info(1).inst(31, 20) === privEbreak && - info(1).op === CSROpType.jmp + info(1).op === CSROpType.jmp && info(0).fusel === FuType.csr io.executeStage.inst1.ex.exception(ecallM) := info(1).inst(31, 20) === privEcall && info(1).op === CSROpType.jmp && priv_mode === ModeM && info(1).fusel === FuType.csr io.executeStage.inst1.ex.exception(ecallS) := info(1).inst(31, 20) === privEcall &&