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 |
438// num_processes++; 439} |