RISCV64VMTranslationMap: add missing instruction cache invalidation
Change-Id: Ie4081a3642e5de84865895e81aaa28f090b2c5eb Reviewed-on: https://review.haiku-os.org/c/haiku/+/6216 Tested-by: Automation <automation@haiku-os.org> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
parent
6d13693a78
commit
1e4146cbc6
@ -327,8 +327,10 @@ RISCV64VMTranslationMap::Map(addr_t virtualAddress, phys_addr_t physicalAddress,
|
||||
newPte.flags |= (1 << pteRead);
|
||||
if ((attributes & B_WRITE_AREA) != 0)
|
||||
newPte.flags |= (1 << pteWrite);
|
||||
if ((attributes & B_EXECUTE_AREA) != 0)
|
||||
if ((attributes & B_EXECUTE_AREA) != 0) {
|
||||
newPte.flags |= (1 << pteExec);
|
||||
fInvalidCode = true;
|
||||
}
|
||||
} else {
|
||||
if ((attributes & B_KERNEL_READ_AREA) != 0)
|
||||
newPte.flags |= (1 << pteRead);
|
||||
|
Loading…
Reference in New Issue
Block a user