mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
cris: Fix TLB exec bit protection
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
0b65b9e105
commit
58aebb946a
2 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ static int cris_mmu_translate_page(struct cris_mmu_result *res,
|
|||
res->prot |= PAGE_READ;
|
||||
if (tlb_w)
|
||||
res->prot |= PAGE_WRITE;
|
||||
if (tlb_x)
|
||||
if (mmu == 0 && (cfg_x || tlb_x))
|
||||
res->prot |= PAGE_EXEC;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue