process.hh revision 2202
18150SN/A/*
28150SN/A * Copyright (c) 2003-2004 The Regents of The University of Michigan
38150SN/A * All rights reserved.
48825Snilay@cs.wisc.edu *
58150SN/A * Redistribution and use in source and binary forms, with or without
68150SN/A * modification, are permitted provided that the following conditions are
78150SN/A * met: redistributions of source code must retain the above copyright
88150SN/A * notice, this list of conditions and the following disclaimer;
98150SN/A * redistributions in binary form must reproduce the above copyright
108150SN/A * notice, this list of conditions and the following disclaimer in the
119885Sstever@gmail.com * documentation and/or other materials provided with the distribution;
128891SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its
139661SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from
148528SN/A * this software without specific prior written permission.
159885Sstever@gmail.com *
169885Sstever@gmail.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
179575Ssaidi@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
189055Ssaidi@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
199348SAli.Saidi@ARM.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
208528SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
218528SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
228150SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239661SAli.Saidi@ARM.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
248150SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
258150SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
268150SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
279449SAli.Saidi@ARM.com */
289885Sstever@gmail.com
299079SAli.Saidi@ARM.com#ifndef __SPARC_LINUX_PROCESS_HH__
308660SN/A#define __SPARC_LINUX_PROCESS_HH__
319661SAli.Saidi@ARM.com
329661SAli.Saidi@ARM.com#include "sim/process.hh"
338150SN/A
348150SN/A
358150SN/A/// A process with emulated SPARC/Linux syscalls.
368150SN/Aclass SparcLinuxProcess : public LiveProcess
378150SN/A{
388150SN/A  public:
398150SN/A    /// Constructor.
408150SN/A    SparcLinuxProcess(const std::string &name,
418150SN/A                      ObjectFile *objFile,
428891SAli.Saidi@ARM.com                      int stdin_fd, int stdout_fd, int stderr_fd,
438150SN/A                      std::vector<std::string> &argv,
448150SN/A                      std::vector<std::string> &envp);
458150SN/A
469885Sstever@gmail.com    virtual SyscallDesc* getDesc(int callnum);
478150SN/A
488891SAli.Saidi@ARM.com    /// The target system's hostname.
498721SN/A    static const char *hostname;
508721SN/A
518891SAli.Saidi@ARM.com     /// Array of syscall descriptors, indexed by call number.
528891SAli.Saidi@ARM.com    static SyscallDesc syscallDescs[];
538150SN/A
548528SN/A    const int Num_Syscall_Descs;
558528SN/A};
568528SN/A
578528SN/A
588528SN/A#endif // __ALPHA_LINUX_PROCESS_HH__
598528SN/A