diff options
author | Aaron Jones <aaron@vexing.codes> | 2019-07-21 16:08:37 -0600 |
---|---|---|
committer | Aaron Jones <aaron@vexing.codes> | 2019-07-22 11:34:33 -0600 |
commit | d184cd4dbfb1c863ae9f1e7c4c263ac626706351 (patch) | |
tree | d919b85827e8e3dfd957ff817286177ad7f59555 /riscv/sim.h | |
parent | 88a852836acb4c7166b1aa4102e11354bfd99234 (diff) | |
download | spike-d184cd4dbfb1c863ae9f1e7c4c263ac626706351.zip spike-d184cd4dbfb1c863ae9f1e7c4c263ac626706351.tar.gz spike-d184cd4dbfb1c863ae9f1e7c4c263ac626706351.tar.bz2 |
Implement MMIO device plugins.
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/sim.h b/riscv/sim.h index a2bdd1c..57d1148 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -23,6 +23,7 @@ class sim_t : public htif_t, public simif_t public: sim_t(const char* isa, const char* varch, size_t _nprocs, bool halted, reg_t start_pc, std::vector<std::pair<reg_t, mem_t*>> mems, + std::vector<std::pair<reg_t, abstract_device_t*>> plugin_devices, const std::vector<std::string>& args, const std::vector<int> hartids, const debug_module_config_t &dm_config); ~sim_t(); @@ -48,6 +49,7 @@ public: private: std::vector<std::pair<reg_t, mem_t*>> mems; + std::vector<std::pair<reg_t, abstract_device_t*>> plugin_devices; mmu_t* debug_mmu; // debug port into main memory std::vector<processor_t*> procs; reg_t start_pc; |