process.hh revision 2665
12600SN/A/* 22600SN/A * Copyright (c) 2003-2004 The Regents of The University of Michigan 32600SN/A * All rights reserved. 42600SN/A * 52600SN/A * Redistribution and use in source and binary forms, with or without 62600SN/A * modification, are permitted provided that the following conditions are 72600SN/A * met: redistributions of source code must retain the above copyright 82600SN/A * notice, this list of conditions and the following disclaimer; 92600SN/A * redistributions in binary form must reproduce the above copyright 102600SN/A * notice, this list of conditions and the following disclaimer in the 112600SN/A * documentation and/or other materials provided with the distribution; 122600SN/A * neither the name of the copyright holders nor the names of its 132600SN/A * contributors may be used to endorse or promote products derived from 142600SN/A * this software without specific prior written permission. 152600SN/A * 162600SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172600SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182600SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192600SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202600SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212600SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222600SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232600SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242600SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252600SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262600SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu * 282665Ssaidi@eecs.umich.edu * Authors: Ali Saidi 292600SN/A */ 302600SN/A 312600SN/A#ifndef __SPARC_SOLARIS_PROCESS_HH__ 322600SN/A#define __SPARC_SOLARIS_PROCESS_HH__ 332600SN/A 342600SN/A#include "arch/sparc/solaris/solaris.hh" 352600SN/A#include "arch/sparc/process.hh" 362600SN/A#include "sim/process.hh" 372600SN/A 382600SN/Anamespace SparcISA { 392600SN/A 402600SN/A/// A process with emulated SPARC/Solaris syscalls. 412600SN/Aclass SparcSolarisProcess : public SparcLiveProcess 422600SN/A{ 432600SN/A public: 442600SN/A /// Constructor. 452600SN/A SparcSolarisProcess(const std::string &name, 462600SN/A ObjectFile *objFile, 472600SN/A System * system, 482600SN/A int stdin_fd, int stdout_fd, int stderr_fd, 492600SN/A std::vector<std::string> &argv, 502600SN/A std::vector<std::string> &envp); 512600SN/A 522600SN/A virtual SyscallDesc* getDesc(int callnum); 532600SN/A 542600SN/A /// The target system's hostname. 552600SN/A static const char *hostname; 562600SN/A 572600SN/A /// Array of syscall descriptors, indexed by call number. 582600SN/A static SyscallDesc syscallDescs[]; 592600SN/A 602600SN/A const int Num_Syscall_Descs; 612600SN/A}; 622600SN/A 632600SN/A 642600SN/A} // namespace SparcISA 652600SN/A#endif // __ALPHA_SOLARIS_PROCESS_HH__ 66