page_table.cc (12455:c88f0b37f433) | page_table.cc (12460:0f221912b014) |
---|---|
1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2003 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 56 unchanged lines hidden (view full) --- 65 66 while (size > 0) { 67 auto it = pTable.find(vaddr); 68 if (it != pTable.end()) { 69 if (clobber) { 70 delete it->second; 71 } else { 72 // already mapped | 1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2003 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 56 unchanged lines hidden (view full) --- 65 66 while (size > 0) { 67 auto it = pTable.find(vaddr); 68 if (it != pTable.end()) { 69 if (clobber) { 70 delete it->second; 71 } else { 72 // already mapped |
73 fatal("EmulationPageTable::allocate: addr %#x already mapped", | 73 panic("EmulationPageTable::allocate: addr %#x already mapped", |
74 vaddr); 75 } 76 } else { 77 it = pTable.emplace(vaddr, nullptr).first; 78 } 79 80 it->second = new TheISA::TlbEntry(pid, vaddr, paddr, 81 flags & Uncacheable, --- 140 unchanged lines hidden --- | 74 vaddr); 75 } 76 } else { 77 it = pTable.emplace(vaddr, nullptr).first; 78 } 79 80 it->second = new TheISA::TlbEntry(pid, vaddr, paddr, 81 flags & Uncacheable, --- 140 unchanged lines hidden --- |