Implemented basic HiFive1-like platform with PLL,tracing etc.
This commit is contained in:
		| @@ -179,6 +179,8 @@ struct rv32gc: public arch_if { | ||||
|  | ||||
|     uint64_t get_icount() { return reg.icount;} | ||||
|  | ||||
|     bool should_stop(){return false;} | ||||
|  | ||||
|     inline phys_addr_t v2p(const iss::addr_t& addr){ | ||||
|         if(addr.space != traits<rv32gc>::MEM || | ||||
|                 addr.type == iss::address_type::PHYSICAL || | ||||
|   | ||||
| @@ -144,8 +144,12 @@ struct rv32imac: public arch_if { | ||||
|     /// deprecated | ||||
|     void update_flags(operations op, uint64_t opr1, uint64_t opr2) override {}; | ||||
|  | ||||
|     inline | ||||
|     uint64_t get_icount() { return reg.icount;} | ||||
|  | ||||
|     inline | ||||
|     bool should_stop() { return interrupt_sim;} | ||||
|  | ||||
|     inline phys_addr_t v2p(const iss::addr_t& addr){ | ||||
|         if(addr.space != traits<rv32imac>::MEM || | ||||
|                 addr.type == iss::address_type::PHYSICAL || | ||||
| @@ -204,6 +208,7 @@ protected: | ||||
|  | ||||
|     std::array<address_type, 4> addr_mode; | ||||
|      | ||||
|     bool interrupt_sim=false; | ||||
|  | ||||
| 	uint32_t get_fcsr(){return 0;} | ||||
| 	void set_fcsr(uint32_t val){} | ||||
|   | ||||
| @@ -146,6 +146,8 @@ struct rv64ia: public arch_if { | ||||
|  | ||||
|     uint64_t get_icount() { return reg.icount;} | ||||
|  | ||||
|     bool should_stop(){return false;} | ||||
|  | ||||
|     inline phys_addr_t v2p(const iss::addr_t& addr){ | ||||
|         if(addr.space != traits<rv64ia>::MEM || | ||||
|                 addr.type == iss::address_type::PHYSICAL || | ||||
|   | ||||
		Reference in New Issue
	
	Block a user