process.cc (7692:8173327c9c65) | process.cc (7720:65d338a8dba4) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 346 unchanged lines hidden (view full) --- 355 } 356 if (envp.size() > 0) { 357 tc->setIntReg(ArgumentReg2, env_data_base + env_data_size - 358 envp[envp.size() - 1].size() - 1); 359 } else { 360 tc->setIntReg(ArgumentReg2, 0); 361 } 362 | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 346 unchanged lines hidden (view full) --- 355 } 356 if (envp.size() > 0) { 357 tc->setIntReg(ArgumentReg2, env_data_base + env_data_size - 358 envp[envp.size() - 1].size() - 1); 359 } else { 360 tc->setIntReg(ArgumentReg2, 0); 361 } 362 |
363 Addr prog_entry = objFile->entryPoint(); 364 if (arch == ObjectFile::Thumb) 365 prog_entry = (prog_entry & ~mask(1)) | PcTBit; 366 tc->setPC(prog_entry); 367 tc->setNextPC(prog_entry + sizeof(MachInst)); | 363 PCState pc; 364 pc.thumb(arch == ObjectFile::Thumb); 365 pc.nextThumb(pc.thumb()); 366 pc.set(objFile->entryPoint() & ~mask(1)); 367 tc->pcState(pc); |
368 369 //Align the "stack_min" to a page boundary. 370 stack_min = roundDown(stack_min, pageSize); 371} 372 373ArmISA::IntReg 374ArmLiveProcess::getSyscallArg(ThreadContext *tc, int &i) 375{ --- 38 unchanged lines hidden --- | 368 369 //Align the "stack_min" to a page boundary. 370 stack_min = roundDown(stack_min, pageSize); 371} 372 373ArmISA::IntReg 374ArmLiveProcess::getSyscallArg(ThreadContext *tc, int &i) 375{ --- 38 unchanged lines hidden --- |