process.cc (5282:2dba627b6646) | process.cc (5335:69d45f5f21a2) |
---|---|
1/* 2 * Copyright (c) 2001-2005 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; --- 47 unchanged lines hidden (view full) --- 56#if THE_ISA == ALPHA_ISA 57#include "arch/alpha/linux/process.hh" 58#include "arch/alpha/tru64/process.hh" 59#elif THE_ISA == SPARC_ISA 60#include "arch/sparc/linux/process.hh" 61#include "arch/sparc/solaris/process.hh" 62#elif THE_ISA == MIPS_ISA 63#include "arch/mips/linux/process.hh" | 1/* 2 * Copyright (c) 2001-2005 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; --- 47 unchanged lines hidden (view full) --- 56#if THE_ISA == ALPHA_ISA 57#include "arch/alpha/linux/process.hh" 58#include "arch/alpha/tru64/process.hh" 59#elif THE_ISA == SPARC_ISA 60#include "arch/sparc/linux/process.hh" 61#include "arch/sparc/solaris/process.hh" 62#elif THE_ISA == MIPS_ISA 63#include "arch/mips/linux/process.hh" |
64#elif THE_ISA == ARM_ISA 65#include "arch/arm/linux/process.hh" |
|
64#elif THE_ISA == X86_ISA 65#include "arch/x86/linux/process.hh" 66#else 67#error "THE_ISA not set" 68#endif 69 70 71using namespace std; --- 623 unchanged lines hidden (view full) --- 695 switch (objFile->getOpSys()) { 696 case ObjectFile::Linux: 697 process = new MipsLinuxProcess(params, objFile); 698 break; 699 700 default: 701 fatal("Unknown/unsupported operating system."); 702 } | 66#elif THE_ISA == X86_ISA 67#include "arch/x86/linux/process.hh" 68#else 69#error "THE_ISA not set" 70#endif 71 72 73using namespace std; --- 623 unchanged lines hidden (view full) --- 697 switch (objFile->getOpSys()) { 698 case ObjectFile::Linux: 699 process = new MipsLinuxProcess(params, objFile); 700 break; 701 702 default: 703 fatal("Unknown/unsupported operating system."); 704 } |
705#elif THE_ISA == ARM_ISA 706 if (objFile->getArch() != ObjectFile::Arm) 707 fatal("Object file architecture does not match compiled ISA (ARM)."); 708 switch (objFile->getOpSys()) { 709 case ObjectFile::Linux: 710 process = new ArmLinuxProcess(params, objFile); 711 break; 712 713 default: 714 fatal("Unknown/unsupported operating system."); 715 } |
|
703#else 704#error "THE_ISA not set" 705#endif 706 707 708 if (process == NULL) 709 fatal("Unknown error creating process object."); 710 return process; 711} 712 713LiveProcess * 714LiveProcessParams::create() 715{ 716 return LiveProcess::create(this); 717} | 716#else 717#error "THE_ISA not set" 718#endif 719 720 721 if (process == NULL) 722 fatal("Unknown error creating process object."); 723 return process; 724} 725 726LiveProcess * 727LiveProcessParams::create() 728{ 729 return LiveProcess::create(this); 730} |