New address map
This commit is contained in:
@ -10,12 +10,10 @@ class htif_emulator_t : public htif_pthread_t
|
||||
int memory_channel_mux_select;
|
||||
|
||||
public:
|
||||
htif_emulator_t(uint32_t memsz_mb, const std::vector<std::string>& args)
|
||||
htif_emulator_t(const std::vector<std::string>& args)
|
||||
: htif_pthread_t(args),
|
||||
memory_channel_mux_select(0)
|
||||
{
|
||||
this->_memsz_mb = memsz_mb;
|
||||
|
||||
for (const auto& arg: args) {
|
||||
if (!strncmp(arg.c_str(), "+memory_channel_mux_select=", 27))
|
||||
memory_channel_mux_select = atoi(arg.c_str()+27);
|
||||
@ -36,14 +34,6 @@ class htif_emulator_t : public htif_pthread_t
|
||||
set_clock_divisor(5, 2);
|
||||
htif_pthread_t::start();
|
||||
}
|
||||
|
||||
uint32_t mem_mb() {
|
||||
uint32_t scr_mb = htif_pthread_t::mem_mb();
|
||||
return (_memsz_mb < scr_mb) ? _memsz_mb : scr_mb;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32_t _memsz_mb;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user