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.
4111851Sbrandon.potter@amd.comclass SparcSolarisProcess : public Sparc64Process
422600SN/A{
432600SN/A  public:
442600SN/A    /// Constructor.
4511851Sbrandon.potter@amd.com    SparcSolarisProcess(ProcessParams * params, ObjectFile *objFile);
462600SN/A
472600SN/A    virtual SyscallDesc* getDesc(int callnum);
482600SN/A
492600SN/A    /// The target system's hostname.
502600SN/A    static const char *hostname;
512600SN/A
522600SN/A     /// Array of syscall descriptors, indexed by call number.
532600SN/A    static SyscallDesc syscallDescs[];
542600SN/A
552600SN/A    const int Num_Syscall_Descs;
562600SN/A};
572600SN/A
582600SN/A
592600SN/A} // namespace SparcISA
605128Sgblack@eecs.umich.edu#endif // __SPARC_SOLARIS_PROCESS_HH__
61