Compare commits
	
		
			1 Commits
		
	
	
		
			e921201f7b
			...
			bc4ea30815
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bc4ea30815 | 
| @@ -35,6 +35,7 @@ | ||||
| #ifndef _RISCV_HART_M_P_HWL_H | ||||
| #define _RISCV_HART_M_P_HWL_H | ||||
|  | ||||
| #include "riscv_hart_common.h" | ||||
| #include <iss/vm_types.h> | ||||
|  | ||||
| namespace iss { | ||||
|   | ||||
| @@ -824,7 +824,8 @@ iss::status riscv_hart_m_p<BASE, FEAT>::write(const address_type type, const acc | ||||
|                 x |= 0x80; // set pll lock upon writing | ||||
|                 return iss::Ok; | ||||
|             } break; | ||||
|             default: {} | ||||
|             default: { | ||||
|             } | ||||
|             } | ||||
|         } break; | ||||
|         case traits<BASE>::CSR: { | ||||
|   | ||||
| @@ -804,7 +804,8 @@ iss::status riscv_hart_msu_vp<BASE>::write(const address_type type, const access | ||||
|                 x |= 0x80; // set pll lock upon writing | ||||
|                 return iss::Ok; | ||||
|             } break; | ||||
|             default: {} | ||||
|             default: { | ||||
|             } | ||||
|             } | ||||
|         } break; | ||||
|         case traits<BASE>::CSR: { | ||||
|   | ||||
| @@ -1007,7 +1007,8 @@ iss::status riscv_hart_mu_p<BASE, FEAT>::write(const address_type type, const ac | ||||
|                 x |= 0x80; // set pll lock upon writing | ||||
|                 return iss::Ok; | ||||
|             } break; | ||||
|             default: {} | ||||
|             default: { | ||||
|             } | ||||
|             } | ||||
|         } break; | ||||
|         case traits<BASE>::CSR: { | ||||
|   | ||||
| @@ -430,7 +430,9 @@ bool core_complex::read_mem(uint64_t addr, unsigned length, uint8_t* const data, | ||||
|                 dbus_inc += incr; | ||||
|         } | ||||
|         SCCTRACE(this->name()) << "[local time: " << delay << "]: finish read_mem(0x" << std::hex << addr << ") : 0x" | ||||
|                                << (length == 4 ? *(uint32_t*)data : length == 2 ? *(uint16_t*)data : (unsigned)*data); | ||||
|                                << (length == 4   ? *(uint32_t*)data | ||||
|                                    : length == 2 ? *(uint16_t*)data | ||||
|                                                  : (unsigned)*data); | ||||
|         if(gp.get_response_status() != tlm::TLM_OK_RESPONSE) { | ||||
|             return false; | ||||
|         } | ||||
| @@ -475,7 +477,9 @@ bool core_complex::write_mem(uint64_t addr, unsigned length, const uint8_t* cons | ||||
|         else | ||||
|             dbus_inc += (delay - quantum_keeper.get_local_time()) / curr_clk; | ||||
|         SCCTRACE() << "[local time: " << delay << "]: finish write_mem(0x" << std::hex << addr << ") : 0x" | ||||
|                    << (length == 4 ? *(uint32_t*)data : length == 2 ? *(uint16_t*)data : (unsigned)*data); | ||||
|                    << (length == 4   ? *(uint32_t*)data | ||||
|                        : length == 2 ? *(uint16_t*)data | ||||
|                                      : (unsigned)*data); | ||||
|         if(gp.get_response_status() != tlm::TLM_OK_RESPONSE) { | ||||
|             return false; | ||||
|         } | ||||
|   | ||||
| @@ -2689,9 +2689,9 @@ std::unique_ptr<vm_if> create<arch::tgc5c>(arch::tgc5c *core, unsigned short por | ||||
| } // namespace interp | ||||
| } // namespace iss | ||||
|  | ||||
| #include <iss/factory.h> | ||||
| #include <iss/arch/riscv_hart_m_p.h> | ||||
| #include <iss/arch/riscv_hart_mu_p.h> | ||||
| #include <iss/factory.h> | ||||
| namespace iss { | ||||
| namespace { | ||||
| volatile std::array<bool, 2> dummy = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user