From a6c29766da07ae9bd7756876fd3fdf4619fa1b58 Mon Sep 17 00:00:00 2001 From: Dolu1990 Date: Wed, 26 Oct 2022 15:48:26 +0200 Subject: [PATCH] CsrPlugin now force privilegeGen when withPrivilegedDebug is enabled --- src/main/scala/vexriscv/plugin/CsrPlugin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/vexriscv/plugin/CsrPlugin.scala b/src/main/scala/vexriscv/plugin/CsrPlugin.scala index ee3fe67..54d805f 100644 --- a/src/main/scala/vexriscv/plugin/CsrPlugin.scala +++ b/src/main/scala/vexriscv/plugin/CsrPlugin.scala @@ -85,7 +85,7 @@ case class CsrPluginConfig( debugTriggers : Int = 2 ){ assert(!ucycleAccess.canWrite) - def privilegeGen = userGen || supervisorGen + def privilegeGen = userGen || supervisorGen || withPrivilegedDebug def noException = this.copy(ecallGen = false, ebreakGen = false, catchIllegalAccess = false) def noExceptionButEcall = this.copy(ecallGen = true, ebreakGen = false, catchIllegalAccess = false) def withEbreak = ebreakGen || withPrivilegedDebug