process.cc (10554:fe2e2f06a7c8) process.cc (10558:426665ec11a9)
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

333 return &fd_map[tgt_fd];
334}
335
336void
337Process::allocateMem(Addr vaddr, int64_t size, bool clobber)
338{
339 int npages = divCeil(size, (int64_t)PageBytes);
340 Addr paddr = system->allocPhysPages(npages);
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

333 return &fd_map[tgt_fd];
334}
335
336void
337Process::allocateMem(Addr vaddr, int64_t size, bool clobber)
338{
339 int npages = divCeil(size, (int64_t)PageBytes);
340 Addr paddr = system->allocPhysPages(npages);
341 pTable->map(vaddr, paddr, size, clobber);
341 pTable->map(vaddr, paddr, size, clobber ? PageTableBase::Clobber : 0);
342}
343
344bool
345Process::fixupStackFault(Addr vaddr)
346{
347 // Check if this is already on the stack and there's just no page there
348 // yet.
349 if (vaddr >= stack_min && vaddr < stack_base) {

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

548 // The above returns a bool so that you could do something if you don't
549 // find the param in the checkpoint if you wanted to, like set a default
550 // but in this case we'll just stick with the instantianted value if not
551 // found.
552}
553
554
555bool
342}
343
344bool
345Process::fixupStackFault(Addr vaddr)
346{
347 // Check if this is already on the stack and there's just no page there
348 // yet.
349 if (vaddr >= stack_min && vaddr < stack_base) {

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

548 // The above returns a bool so that you could do something if you don't
549 // find the param in the checkpoint if you wanted to, like set a default
550 // but in this case we'll just stick with the instantianted value if not
551 // found.
552}
553
554
555bool
556Process::map(Addr vaddr, Addr paddr, int size)
556Process::map(Addr vaddr, Addr paddr, int size, bool cacheable)
557{
557{
558 pTable->map(vaddr, paddr, size);
558 pTable->map(vaddr, paddr, size,
559 cacheable ? 0 : PageTableBase::Uncacheable);
559 return true;
560}
561
562
563////////////////////////////////////////////////////////////////////////
564//
565// LiveProcess member definitions
566//

--- 202 unchanged lines hidden ---
560 return true;
561}
562
563
564////////////////////////////////////////////////////////////////////////
565//
566// LiveProcess member definitions
567//

--- 202 unchanged lines hidden ---