Skip to content

Commit

Permalink
[spike_interfaces] "sim_t" -> "t1_sim_t" to avoid name collision
Browse files Browse the repository at this point in the history
Since spike already define "class sim_t" in riscv/sim.h
  • Loading branch information
FanShupei authored and sequencer committed Sep 11, 2024
1 parent 45e293f commit ab32791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions difftest/spike_interfaces/spike_interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ ffi_callback ffi_addr_to_mem;
extern void *ffi_target;
std::vector<uint32_t> reg_write_index_vec;

class sim_t : public simif_t {
class t1_sim_t : public simif_t {
public:
sim_t() {}
~sim_t() {}
t1_sim_t() {}
~t1_sim_t() {}
char *addr_to_mem(reg_t addr) override {
return ffi_addr_to_mem(ffi_target, addr);
}
Expand Down Expand Up @@ -50,7 +50,7 @@ class Spike {

private:
cfg_t cfg;
sim_t sim;
t1_sim_t sim;
isa_parser_t isa;
processor_t proc;
};
Expand Down

0 comments on commit ab32791

Please sign in to comment.