process.hh revision 5128
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.
415128Sgblack@eecs.umich.educlass SparcSolarisProcess : public Sparc64LiveProcess
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,
503114Sgblack@eecs.umich.edu                      std::vector<std::string> &envp,
513669Sbinkertn@umich.edu                      const std::string &cwd,
523114Sgblack@eecs.umich.edu                      uint64_t _uid, uint64_t _euid,
533114Sgblack@eecs.umich.edu                      uint64_t _gid, uint64_t _egid,
543114Sgblack@eecs.umich.edu                      uint64_t _pid, uint64_t _ppid);
552600SN/A
562600SN/A    virtual SyscallDesc* getDesc(int callnum);
572600SN/A
582600SN/A    /// The target system's hostname.
592600SN/A    static const char *hostname;
602600SN/A
612600SN/A     /// Array of syscall descriptors, indexed by call number.
622600SN/A    static SyscallDesc syscallDescs[];
632600SN/A
642600SN/A    const int Num_Syscall_Descs;
652600SN/A};
662600SN/A
672600SN/A
682600SN/A} // namespace SparcISA
695128Sgblack@eecs.umich.edu#endif // __SPARC_SOLARIS_PROCESS_HH__
70