From 4fe7fa56c788d641ce5be67a702b075b9a24c8c2 Mon Sep 17 00:00:00 2001 From: Charles Papon Date: Thu, 7 Nov 2019 19:55:26 +0100 Subject: [PATCH] GenCustomInterrupt demo now enabled vectored interrupt --- src/main/scala/vexriscv/demo/GenCustomInterrupt.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/scala/vexriscv/demo/GenCustomInterrupt.scala b/src/main/scala/vexriscv/demo/GenCustomInterrupt.scala index cb8ef4f..d0d9e48 100644 --- a/src/main/scala/vexriscv/demo/GenCustomInterrupt.scala +++ b/src/main/scala/vexriscv/demo/GenCustomInterrupt.scala @@ -19,6 +19,12 @@ object GenCustomInterrupt extends App{ interruptName = "rawrrr", code = 24 ), + new CsrPlugin( + CsrPluginConfig.smallest.copy( + xtvecModeGen = true, + mtvecAccess = CsrAccess.WRITE_ONLY + ) + ), new IBusSimplePlugin( resetVector = 0x80000000l, cmdForkOnSecondStage = false, @@ -31,7 +37,6 @@ object GenCustomInterrupt extends App{ catchAddressMisaligned = false, catchAccessFault = false ), - new CsrPlugin(CsrPluginConfig.smallest), new DecoderSimplePlugin( catchIllegalInstruction = false ),