Implemented basic HiFive1-like platform with PLL,tracing etc.
This commit is contained in:
		| @@ -62,6 +62,7 @@ void rv32gc::reset(uint64_t address) { | ||||
|     reg.NEXT_PC=reg.PC; | ||||
|     reg.trap_state=0; | ||||
|     reg.machine_state=0x0; | ||||
|     reg.icount=0; | ||||
| } | ||||
|  | ||||
| uint8_t* rv32gc::get_regs_base_ptr(){ | ||||
|   | ||||
| @@ -63,6 +63,7 @@ void rv64ia::reset(uint64_t address) { | ||||
|     reg.NEXT_PC = reg.PC; | ||||
|     reg.trap_state = 0; | ||||
|     reg.machine_state = 0x3; | ||||
|     reg.icount=0; | ||||
| } | ||||
|  | ||||
| uint8_t *rv64ia::get_regs_base_ptr() { return reinterpret_cast<uint8_t *>(®); } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user