File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -156,21 +156,21 @@ void mem_t::dump(std::ostream& o) {
156156 }
157157}
158158
159- external_sim_device_t ::external_sim_device_t (void * sim)
159+ external_sim_device_t ::external_sim_device_t (abstract_sim_if_t * sim)
160160 : external_simulator(sim) {}
161161
162- void external_sim_device_t::set_simulator (void * sim) {
162+ void external_sim_device_t::set_simulator (abstract_sim_if_t * sim) {
163163 external_simulator = sim;
164164}
165165
166166bool external_sim_device_t::load (reg_t addr, size_t len, uint8_t * bytes) {
167167 if (unlikely (external_simulator == nullptr )) return false ;
168- return static_cast < abstract_sim_if_t *>( external_simulator) ->load (addr, len, bytes);
168+ return external_simulator->load (addr, len, bytes);
169169}
170170
171171bool external_sim_device_t::store (reg_t addr, size_t len, const uint8_t * bytes) {
172172 if (unlikely (external_simulator == nullptr )) return false ;
173- return static_cast < abstract_sim_if_t *>( external_simulator) ->store (addr, len, bytes);
173+ return external_simulator->store (addr, len, bytes);
174174}
175175
176176reg_t external_sim_device_t::size () {
Original file line number Diff line number Diff line change @@ -80,14 +80,14 @@ class abstract_sim_if_t {
8080
8181class external_sim_device_t : public abstract_device_t {
8282public:
83- external_sim_device_t (void * sim);
84- void set_simulator (void * sim);
83+ external_sim_device_t (abstract_sim_if_t * sim);
84+ void set_simulator (abstract_sim_if_t * sim);
8585 bool load (reg_t addr, size_t len, uint8_t * bytes) override ;
8686 bool store (reg_t addr, size_t len, const uint8_t * bytes) override ;
8787 reg_t size () override ;
8888
8989private:
90- void * external_simulator;
90+ abstract_sim_if_t * external_simulator;
9191};
9292
9393class clint_t : public abstract_device_t {
You can’t perform that action at this time.
0 commit comments