process.cc (3761:b7c7f547d5a3) process.cc (3959:65f769010018)
1/*
2 * Copyright (c) 2003-2004 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;

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

427 threadContexts[0]->setIntReg(ArgumentReg1, argv_array_base);
428 threadContexts[0]->setIntReg(StackPointerReg, stack_min - StackBias);
429
430 Addr prog_entry = objFile->entryPoint();
431 threadContexts[0]->setPC(prog_entry);
432 threadContexts[0]->setNextPC(prog_entry + sizeof(MachInst));
433 threadContexts[0]->setNextNPC(prog_entry + (2 * sizeof(MachInst)));
434
1/*
2 * Copyright (c) 2003-2004 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;

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

427 threadContexts[0]->setIntReg(ArgumentReg1, argv_array_base);
428 threadContexts[0]->setIntReg(StackPointerReg, stack_min - StackBias);
429
430 Addr prog_entry = objFile->entryPoint();
431 threadContexts[0]->setPC(prog_entry);
432 threadContexts[0]->setNextPC(prog_entry + sizeof(MachInst));
433 threadContexts[0]->setNextNPC(prog_entry + (2 * sizeof(MachInst)));
434
435 //Align the "stack_min" to a page boundary.
436 stack_min = roundDown(stack_min, pageSize);
437
435// num_processes++;
436}
438// num_processes++;
439}