From aa8cbb1ccd3856fd5e0437b0e24cfd7a3b794b8e Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 27 Feb 2018 12:30:46 -0800 Subject: Add debug module authentication. Off by default, enabled with --debug-auth. The protocol is very simple (definitely not secure) to allow debuggers to test their authentication feature. To authenticate a debugger must: 1. Read authdata 2. Write to authdata the value that it just read, plus 1 --- riscv/sim.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv/sim.h') diff --git a/riscv/sim.h b/riscv/sim.h index 47f3a45..6c6e435 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -22,7 +22,7 @@ public: sim_t(const char* isa, size_t _nprocs, bool halted, reg_t start_pc, std::vector> mems, const std::vector& args, const std::vector hartids, - unsigned progsize, unsigned max_bus_master_bits); + unsigned progsize, unsigned max_bus_master_bits, bool require_authentication); ~sim_t(); // run the simulation to completion -- cgit v1.1