e2k-linux-user: ugly hack to make syscall works
This commit is contained in:
parent
a84db39085
commit
0f0ac88f64
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user