pagetable.hh (8794:e2ac2b7164dd) | pagetable.hh (10558:426665ec11a9) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 90 unchanged lines hidden (view full) --- 99 uint8_t asn; // address space number 100 bool asma; // address space match 101 bool fonr; // fault on read 102 bool fonw; // fault on write 103 bool valid; // valid page table entry 104 105 106 //Construct an entry that maps to physical address addr. | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 90 unchanged lines hidden (view full) --- 99 uint8_t asn; // address space number 100 bool asma; // address space match 101 bool fonr; // fault on read 102 bool fonw; // fault on write 103 bool valid; // valid page table entry 104 105 106 //Construct an entry that maps to physical address addr. |
107 TlbEntry(Addr _asn, Addr _vaddr, Addr _paddr) | 107 TlbEntry(Addr _asn, Addr _vaddr, Addr _paddr, 108 bool uncacheable, bool read_only) |
108 { 109 VAddr vaddr(_vaddr); 110 VAddr paddr(_paddr); 111 tag = vaddr.vpn(); 112 ppn = paddr.vpn(); 113 xre = 15; 114 xwe = 15; 115 asn = _asn; 116 asma = false; 117 fonr = false; 118 fonw = false; 119 valid = true; | 109 { 110 VAddr vaddr(_vaddr); 111 VAddr paddr(_paddr); 112 tag = vaddr.vpn(); 113 ppn = paddr.vpn(); 114 xre = 15; 115 xwe = 15; 116 asn = _asn; 117 asma = false; 118 fonr = false; 119 fonw = false; 120 valid = true; |
121 if (uncacheable || read_only) 122 warn("Alpha TlbEntry does not support uncacheable" 123 " or read-only mappings\n"); |
|
120 } 121 122 TlbEntry() 123 {} 124 125 void 126 updateVaddr(Addr new_vaddr) 127 { --- 18 unchanged lines hidden --- | 124 } 125 126 TlbEntry() 127 {} 128 129 void 130 updateVaddr(Addr new_vaddr) 131 { --- 18 unchanged lines hidden --- |