process.cc (5713:993c7952b930) | process.cc (5758:9c3edb28db1a) |
---|---|
1/* 2 * Copyright (c) 2003-2006 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; --- 89 unchanged lines hidden (view full) --- 98#include "mem/page_table.hh" 99#include "mem/translating_port.hh" 100#include "sim/process_impl.hh" 101#include "sim/system.hh" 102 103using namespace std; 104using namespace X86ISA; 105 | 1/* 2 * Copyright (c) 2003-2006 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; --- 89 unchanged lines hidden (view full) --- 98#include "mem/page_table.hh" 99#include "mem/translating_port.hh" 100#include "sim/process_impl.hh" 101#include "sim/system.hh" 102 103using namespace std; 104using namespace X86ISA; 105 |
106M5_64_auxv_t::M5_64_auxv_t(int64_t type, int64_t val) 107{ 108 a_type = X86ISA::htog(type); 109 a_val = X86ISA::htog(val); 110} | |
111 112X86LiveProcess::X86LiveProcess(LiveProcessParams * params, 113 ObjectFile *objFile) 114 : LiveProcess(params, objFile) 115{ 116 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize(); 117 brk_point = roundUp(brk_point, VMPageSize); 118 --- 81 unchanged lines hidden (view full) --- 200 efer.ffxsr = 1; // Turn on fast fxsave and fxrstor. 201 tc->setMiscReg(MISCREG_EFER, efer); 202 } 203} 204 205void 206X86LiveProcess::argsInit(int intSize, int pageSize) 207{ | 106 107X86LiveProcess::X86LiveProcess(LiveProcessParams * params, 108 ObjectFile *objFile) 109 : LiveProcess(params, objFile) 110{ 111 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize(); 112 brk_point = roundUp(brk_point, VMPageSize); 113 --- 81 unchanged lines hidden (view full) --- 195 efer.ffxsr = 1; // Turn on fast fxsave and fxrstor. 196 tc->setMiscReg(MISCREG_EFER, efer); 197 } 198} 199 200void 201X86LiveProcess::argsInit(int intSize, int pageSize) 202{ |
208 typedef M5_64_auxv_t auxv_t; | 203 typedef M5_auxv_t<uint64_t> auxv_t; 204 std::vector<auxv_t> auxv; 205 |
209 Process::startup(); 210 211 string filename; 212 if(argv.size() < 1) 213 filename = ""; 214 else 215 filename = argv[0]; 216 --- 259 unchanged lines hidden --- | 206 Process::startup(); 207 208 string filename; 209 if(argv.size() < 1) 210 filename = ""; 211 else 212 filename = argv[0]; 213 --- 259 unchanged lines hidden --- |