page_table.cc (12461:a4cb506cda74) page_table.cc (12519:1fcc0d0a8f91)
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

--- 73 unchanged lines hidden (view full) ---

82 DPRINTF(MMU, "moving pages from vaddr %08p to %08p, size = %d\n", vaddr,
83 new_vaddr, size);
84
85 while (size > 0) {
86 auto new_it = pTable.find(new_vaddr);
87 auto old_it = pTable.find(vaddr);
88 assert(old_it != pTable.end() && new_it == pTable.end());
89
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

--- 73 unchanged lines hidden (view full) ---

82 DPRINTF(MMU, "moving pages from vaddr %08p to %08p, size = %d\n", vaddr,
83 new_vaddr, size);
84
85 while (size > 0) {
86 auto new_it = pTable.find(new_vaddr);
87 auto old_it = pTable.find(vaddr);
88 assert(old_it != pTable.end() && new_it == pTable.end());
89
90 new_it->second = old_it->second;
90 pTable.emplace(new_vaddr, old_it->second);
91 pTable.erase(old_it);
92 size -= pageSize;
93 vaddr += pageSize;
94 new_vaddr += pageSize;
95 }
96}
97
98void

--- 110 unchanged lines hidden ---
91 pTable.erase(old_it);
92 size -= pageSize;
93 vaddr += pageSize;
94 new_vaddr += pageSize;
95 }
96}
97
98void

--- 110 unchanged lines hidden ---