diff options
author | Tim Newsome <tim@sifive.com> | 2018-02-27 12:30:46 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-02-27 12:30:46 -0800 |
commit | aa8cbb1ccd3856fd5e0437b0e24cfd7a3b794b8e (patch) | |
tree | 5ce67dd1233646c36bd8b5c0189618f4be1d767c /riscv/sim.h | |
parent | 0329b0741a698f102d64be4f0538427978bacb83 (diff) | |
download | spike-aa8cbb1ccd3856fd5e0437b0e24cfd7a3b794b8e.zip spike-aa8cbb1ccd3856fd5e0437b0e24cfd7a3b794b8e.tar.gz spike-aa8cbb1ccd3856fd5e0437b0e24cfd7a3b794b8e.tar.bz2 |
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
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::pair<reg_t, mem_t*>> mems, const std::vector<std::string>& args, const std::vector<int> 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 |