X86: Obey the PCD (cache disable) bit in the page tables.
This commit is contained in:
parent
c8c921b9db
commit
3cd349f443
1 changed files with 2 additions and 0 deletions
|
@ -653,6 +653,8 @@ TLB::translate(RequestPtr req, ThreadContext *tc, Translation *translation,
|
||||||
Addr paddr = entry->paddr | (vaddr & (entry->size-1));
|
Addr paddr = entry->paddr | (vaddr & (entry->size-1));
|
||||||
DPRINTF(TLB, "Translated %#x -> %#x.\n", vaddr, paddr);
|
DPRINTF(TLB, "Translated %#x -> %#x.\n", vaddr, paddr);
|
||||||
req->setPaddr(paddr);
|
req->setPaddr(paddr);
|
||||||
|
if (entry->uncacheable)
|
||||||
|
req->setFlags(Request::UNCACHEABLE);
|
||||||
} else {
|
} else {
|
||||||
//Use the address which already has segmentation applied.
|
//Use the address which already has segmentation applied.
|
||||||
DPRINTF(TLB, "Paging disabled.\n");
|
DPRINTF(TLB, "Paging disabled.\n");
|
||||||
|
|
Loading…
Reference in a new issue