process.cc (7488:cf7c4345ea82) | process.cc (7532:3f6413fc37a2) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 86 unchanged lines hidden (view full) --- 95 a_type = TheISA::htog(type); 96 a_val = TheISA::htog(val); 97} 98 99template class AuxVector<uint32_t>; 100template class AuxVector<uint64_t>; 101 102Process::Process(ProcessParams * params) | 1/* 2 * Copyright (c) 2001-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; --- 86 unchanged lines hidden (view full) --- 95 a_type = TheISA::htog(type); 96 a_val = TheISA::htog(val); 97} 98 99template class AuxVector<uint32_t>; 100template class AuxVector<uint64_t>; 101 102Process::Process(ProcessParams * params) |
103 : SimObject(params), system(params->system), checkpointRestored(false), 104 max_stack_size(params->max_stack_size) | 103 : SimObject(params), system(params->system), 104 max_stack_size(params->max_stack_size) |
105{ 106 string in = params->input; 107 string out = params->output; 108 string err = params->errout; 109 110 // initialize file descriptors to default: same as simulator 111 int stdin_fd, stdout_fd, stderr_fd; 112 --- 115 unchanged lines hidden (view full) --- 228 // inactive context, free to use 229 return tc; 230 } 231 } 232 return NULL; 233} 234 235void | 105{ 106 string in = params->input; 107 string out = params->output; 108 string err = params->errout; 109 110 // initialize file descriptors to default: same as simulator 111 int stdin_fd, stdout_fd, stderr_fd; 112 --- 115 unchanged lines hidden (view full) --- 228 // inactive context, free to use 229 return tc; 230 } 231 } 232 return NULL; 233} 234 235void |
236Process::startup() | 236Process::initState() |
237{ 238 if (contextIds.empty()) 239 fatal("Process %s is not associated with any HW contexts!\n", name()); 240 241 // first thread context for this process... initialize & enable 242 ThreadContext *tc = system->getThreadContext(contextIds[0]); 243 244 // mark this context as active so it will start ticking. --- 287 unchanged lines hidden (view full) --- 532 fd_map[x].unserialize(cp, csprintf("%s.FdMap%d", section, x)); 533 } 534 fix_file_offsets(); 535 UNSERIALIZE_OPT_SCALAR(M5_pid); 536 // The above returns a bool so that you could do something if you don't 537 // find the param in the checkpoint if you wanted to, like set a default 538 // but in this case we'll just stick with the instantianted value if not 539 // found. | 237{ 238 if (contextIds.empty()) 239 fatal("Process %s is not associated with any HW contexts!\n", name()); 240 241 // first thread context for this process... initialize & enable 242 ThreadContext *tc = system->getThreadContext(contextIds[0]); 243 244 // mark this context as active so it will start ticking. --- 287 unchanged lines hidden (view full) --- 532 fd_map[x].unserialize(cp, csprintf("%s.FdMap%d", section, x)); 533 } 534 fix_file_offsets(); 535 UNSERIALIZE_OPT_SCALAR(M5_pid); 536 // The above returns a bool so that you could do something if you don't 537 // find the param in the checkpoint if you wanted to, like set a default 538 // but in this case we'll just stick with the instantianted value if not 539 // found. |
540 541 checkpointRestored = true; 542 | |
543} 544 545 546//////////////////////////////////////////////////////////////////////// 547// 548// LiveProcess member definitions 549// 550//////////////////////////////////////////////////////////////////////// --- 185 unchanged lines hidden --- | 540} 541 542 543//////////////////////////////////////////////////////////////////////// 544// 545// LiveProcess member definitions 546// 547//////////////////////////////////////////////////////////////////////// --- 185 unchanged lines hidden --- |