Cleaner implementation for uc_mem_prot on mmio regions

This commit is contained in:
2022-05-28 23:46:06 +02:00
parent 2a6529348c
commit 289034538d
3 changed files with 4 additions and 22 deletions

View File

@@ -1657,13 +1657,6 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi,
res = load_memop(haddr, op);
_out:
// mmio error check
if (uc->invalid_error != UC_ERR_OK) {
uc->invalid_addr = addr;
cpu_exit(uc->cpu);
return 0;
}
// Unicorn: callback on successful data read
if (!code_read) {
if (!uc->size_recur_mem) { // disabling read callback if in recursive call