diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-06-20 14:16:42 -0700 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2023-07-02 23:41:45 -0700 |
commit | 2d61da362201cd73a89d22b9cb71c6590f20a3ce (patch) | |
tree | 5db55e20fc3a7ff9a846399bb17d4722f493a1d2 /riscv/sim.h | |
parent | f45f7269b71e3da218a1e1bb4d08b8954cab2d70 (diff) | |
download | riscv-isa-sim-2d61da362201cd73a89d22b9cb71c6590f20a3ce.zip riscv-isa-sim-2d61da362201cd73a89d22b9cb71c6590f20a3ce.tar.gz riscv-isa-sim-2d61da362201cd73a89d22b9cb71c6590f20a3ce.tar.bz2 |
sim_t: Add sim_t::add_device() API
This is public so libspike users can precisely configure the device bus
without going through the DTS interface
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/sim.h b/riscv/sim.h index a3445db..2b58975 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -39,6 +39,7 @@ public: int run(); void set_debug(bool value); void set_histogram(bool value); + void add_device(reg_t addr, std::shared_ptr<abstract_device_t> dev); // Configure logging // |