process.hh (10554:fe2e2f06a7c8) | process.hh (10558:426665ec11a9) |
---|---|
1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2001-2005 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 --- 205 unchanged lines hidden (view full) --- 214 215 void allocateMem(Addr vaddr, int64_t size, bool clobber = false); 216 217 /// Attempt to fix up a fault at vaddr by allocating a page on the stack. 218 /// @return Whether the fault has been fixed. 219 bool fixupStackFault(Addr vaddr); 220 221 /** | 1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2001-2005 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 --- 205 unchanged lines hidden (view full) --- 214 215 void allocateMem(Addr vaddr, int64_t size, bool clobber = false); 216 217 /// Attempt to fix up a fault at vaddr by allocating a page on the stack. 218 /// @return Whether the fault has been fixed. 219 bool fixupStackFault(Addr vaddr); 220 221 /** |
222 * Map a contiguous range of virtual addresses in this process's | 222 * Maps a contiguous range of virtual addresses in this process's |
223 * address space to a contiguous range of physical addresses. | 223 * address space to a contiguous range of physical addresses. |
224 * This function exists primarily to enable exposing the map 225 * operation to python, so that configuration scripts can set up 226 * mappings in SE mode. | 224 * This function exists primarily to expose the map operation to 225 * python, so that configuration scripts can set up mappings in SE mode. |
227 * 228 * @param vaddr The starting virtual address of the range. 229 * @param paddr The starting physical address of the range. 230 * @param size The length of the range in bytes. | 226 * 227 * @param vaddr The starting virtual address of the range. 228 * @param paddr The starting physical address of the range. 229 * @param size The length of the range in bytes. |
230 * @param cacheable Specifies whether accesses are cacheable. |
|
231 * @return True if the map operation was successful. (At this 232 * point in time, the map operation always succeeds.) 233 */ | 231 * @return True if the map operation was successful. (At this 232 * point in time, the map operation always succeeds.) 233 */ |
234 bool map(Addr vaddr, Addr paddr, int size); | 234 bool map(Addr vaddr, Addr paddr, int size, bool cacheable = true); |
235 236 void serialize(std::ostream &os); 237 void unserialize(Checkpoint *cp, const std::string §ion); 238}; 239 240// 241// "Live" process with system calls redirected to host system 242// --- 109 unchanged lines hidden --- | 235 236 void serialize(std::ostream &os); 237 void unserialize(Checkpoint *cp, const std::string §ion); 238}; 239 240// 241// "Live" process with system calls redirected to host system 242// --- 109 unchanged lines hidden --- |