From 92e0c5da72f1ed2efad9e28286b47ad49f35ed4f Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 5 Nov 2024 17:50:37 +0100 Subject: [PATCH] missing initialization of mip register --- src/uriscv/processor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uriscv/processor.cc b/src/uriscv/processor.cc index a604c5a..4e7393a 100644 --- a/src/uriscv/processor.cc +++ b/src/uriscv/processor.cc @@ -272,6 +272,7 @@ void Processor::Reset(Word pc, Word sp) { csrWrite(MCAUSE, 0); csrWrite(TIME, 0); csrWrite(PRID, id); + csrWrite(MIP, 0); mode = 0x3; currPC = pc;