process.cc (7678:f19b6a3a8cec) | process.cc (7692:8173327c9c65) |
---|---|
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 --- 348 unchanged lines hidden (view full) --- 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) | 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 --- 348 unchanged lines hidden (view full) --- 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)) | (ULL(1) << PcTBitShift); | 365 prog_entry = (prog_entry & ~mask(1)) | PcTBit; |
366 tc->setPC(prog_entry); 367 tc->setNextPC(prog_entry + sizeof(MachInst)); 368 369 //Align the "stack_min" to a page boundary. 370 stack_min = roundDown(stack_min, pageSize); 371} 372 373ArmISA::IntReg --- 40 unchanged lines hidden --- | 366 tc->setPC(prog_entry); 367 tc->setNextPC(prog_entry + sizeof(MachInst)); 368 369 //Align the "stack_min" to a page boundary. 370 stack_min = roundDown(stack_min, pageSize); 371} 372 373ArmISA::IntReg --- 40 unchanged lines hidden --- |