fix hard-code arch in templates
This commit is contained in:
parent
1616f0ac90
commit
8b6e3abd23
|
@ -59,7 +59,7 @@ ${coreDef.name.toLowerCase()}::~${coreDef.name.toLowerCase()}() = default;
|
|||
|
||||
void ${coreDef.name.toLowerCase()}::reset(uint64_t address) {
|
||||
auto base_ptr = reinterpret_cast<traits<${coreDef.name.toLowerCase()}>::reg_t*>(get_regs_base_ptr());
|
||||
for(size_t i=0; i<traits<tgc_c>::NUM_REGS; ++i)
|
||||
for(size_t i=0; i<traits<${coreDef.name.toLowerCase()}>::NUM_REGS; ++i)
|
||||
*(base_ptr+i)=0;
|
||||
reg.PC=address;
|
||||
reg.NEXT_PC=reg.PC;
|
||||
|
|
Loading…
Reference in New Issue