From b4b7718aa2b71bbcfe8c2c9817619266eaa221b9 Mon Sep 17 00:00:00 2001 From: jon Date: Thu, 8 Oct 2020 15:00:43 +0100 Subject: [PATCH] Sort of support 2 cores for starting and halting. --- src_Core/CPU/Proc.bsv | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src_Core/CPU/Proc.bsv b/src_Core/CPU/Proc.bsv index 54f6852..27d6ec6 100644 --- a/src_Core/CPU/Proc.bsv +++ b/src_Core/CPU/Proc.bsv @@ -313,7 +313,22 @@ module mkProc (Proc_IFC); `ifdef INCLUDE_GDB_CONTROL // run/halt, gpr, mem and csr control goes to core - interface Server hart0_run_halt_server = core [0].hart0_run_halt_server; + interface Server hart0_run_halt_server; + interface Put#(Bool) request; + method Action Put#(Bool x) put; + for(Integer i = 0; i < valueof(CoreNum); i = i+1) + core[i].hart0_run_halt_server.request.put(x); + endmethod + endinterface + interface Get#(Bool) response; + method ActionValue#(Bool) get; + Vector#(Bool,i) resp; + for(Integer i = 0; i < valueof(CoreNum); i = i+1) + resp[i] = core[i].hart0_run_halt_server.response.get(x); + return resp[0]; + endmethod + endinterface + endinterface interface Put hart0_put_other_req; method Action put (Bit #(4) req);