syscall_emul.cc (13995:5d459168a680) syscall_emul.cc (14020:c9bf7a011602)
1/*
2 * Copyright (c) 2003-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;

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

260 new_brk - brk_point,
261 PageBytes); !gen.done(); gen.next()) {
262 if (!p->pTable->translate(gen.addr()))
263 p->allocateMem(roundDown(gen.addr(), PageBytes), PageBytes);
264
265 // if the address is already there, zero it out
266 else {
267 uint8_t zero = 0;
1/*
2 * Copyright (c) 2003-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;

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

260 new_brk - brk_point,
261 PageBytes); !gen.done(); gen.next()) {
262 if (!p->pTable->translate(gen.addr()))
263 p->allocateMem(roundDown(gen.addr(), PageBytes), PageBytes);
264
265 // if the address is already there, zero it out
266 else {
267 uint8_t zero = 0;
268 SETranslatingPortProxy &tp = tc->getMemProxy();
268 PortProxy &tp = tc->getMemProxy();
269
270 // split non-page aligned accesses
271 Addr next_page = roundUp(gen.addr(), PageBytes);
272 uint32_t size_needed = next_page - gen.addr();
273 tp.memsetBlob(gen.addr(), zero, size_needed);
274 if (gen.addr() + PageBytes > next_page &&
275 next_page < new_brk &&
276 p->pTable->translate(next_page)) {

--- 1495 unchanged lines hidden ---
269
270 // split non-page aligned accesses
271 Addr next_page = roundUp(gen.addr(), PageBytes);
272 uint32_t size_needed = next_page - gen.addr();
273 tp.memsetBlob(gen.addr(), zero, size_needed);
274 if (gen.addr() + PageBytes > next_page &&
275 next_page < new_brk &&
276 p->pTable->translate(next_page)) {

--- 1495 unchanged lines hidden ---