fix find_package use and debug access alignment check

This commit is contained in:
2021-08-26 22:10:27 +02:00
parent 9c8b72693e
commit 09b01af3fa
4 changed files with 7 additions and 5 deletions

View File

@ -541,7 +541,7 @@ iss::status riscv_hart_m_p<BASE>::write(const address_type type, const access_ty
return iss::Err;
}
try {
if(length>1 && (addr&(length-1))){
if(!(access && iss::access_type::DEBUG) && length>1 && (addr&(length-1))){
this->reg.trap_state = 1<<31 | 6<<16;
fault_data=addr;
return iss::Err;