process.hh revision 2665:a124942bacb8
15647Sgblack@eecs.umich.edu/* 25647Sgblack@eecs.umich.edu * Copyright (c) 2003-2004 The Regents of The University of Michigan 35647Sgblack@eecs.umich.edu * All rights reserved. 45647Sgblack@eecs.umich.edu * 55647Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 65647Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are 75647Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright 85647Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 95647Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 105647Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 115647Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution; 125647Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its 135647Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from 145647Sgblack@eecs.umich.edu * this software without specific prior written permission. 155647Sgblack@eecs.umich.edu * 165647Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 175647Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 185647Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 195647Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 205647Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 215647Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 225647Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 235647Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 245647Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 255647Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 265647Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 275647Sgblack@eecs.umich.edu * 285647Sgblack@eecs.umich.edu * Authors: Steve Reinhardt 295647Sgblack@eecs.umich.edu */ 305647Sgblack@eecs.umich.edu 315647Sgblack@eecs.umich.edu#ifndef __ALPHA_LINUX_PROCESS_HH__ 325647Sgblack@eecs.umich.edu#define __ALPHA_LINUX_PROCESS_HH__ 335647Sgblack@eecs.umich.edu 349338SAndreas.Sandberg@arm.com#include "arch/alpha/process.hh" 35 36namespace AlphaISA { 37 38/// A process with emulated Alpha/Linux syscalls. 39class AlphaLinuxProcess : public AlphaLiveProcess 40{ 41 public: 42 /// Constructor. 43 AlphaLinuxProcess(const std::string &name, 44 ObjectFile *objFile, 45 System *system, 46 int stdin_fd, int stdout_fd, int stderr_fd, 47 std::vector<std::string> &argv, 48 std::vector<std::string> &envp); 49 50 virtual SyscallDesc* getDesc(int callnum); 51 52 /// The target system's hostname. 53 static const char *hostname; 54 55 /// Array of syscall descriptors, indexed by call number. 56 static SyscallDesc syscallDescs[]; 57 58 const int Num_Syscall_Descs; 59}; 60 61} // namespace AlphaISA 62#endif // __ALPHA_LINUX_PROCESS_HH__ 63