e2k-linux-user: ugly hack to make syscall works

This commit is contained in:
Denis Drakhnia 2023-12-06 19:08:45 +02:00
parent a84db39085
commit 0f0ac88f64
1 changed files with 6 additions and 0 deletions

View File

@ -787,6 +787,12 @@ static int probe_access_internal(CPUArchState *env, vaddr addr,
acc_flag = PAGE_READ;
break;
case MMU_INST_FETCH:
/* HACK: ugly way to allow access to fake kernel space */
#ifdef TARGET_E2K
if (addr >= E2K_FAKE_KERN_START && addr < E2K_FAKE_KERN_END) {
return 0;
}
#endif
acc_flag = PAGE_EXEC;
break;
default: