fix find_package use and debug access alignment check

This commit is contained in:
eyck committed 2021-08-26 22:10:27 +02:00
1 parent 9c8b72693e
commit 09b01af3fa
4 files changed
+7 -5

No files matched your search

+1 -1
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;