process.hh revision 2665
1360SN/A/*
21762SN/A * Copyright (c) 2003-2004 The Regents of The University of Michigan
3360SN/A * All rights reserved.
4360SN/A *
5360SN/A * Redistribution and use in source and binary forms, with or without
6360SN/A * modification, are permitted provided that the following conditions are
7360SN/A * met: redistributions of source code must retain the above copyright
8360SN/A * notice, this list of conditions and the following disclaimer;
9360SN/A * redistributions in binary form must reproduce the above copyright
10360SN/A * notice, this list of conditions and the following disclaimer in the
11360SN/A * documentation and/or other materials provided with the distribution;
12360SN/A * neither the name of the copyright holders nor the names of its
13360SN/A * contributors may be used to endorse or promote products derived from
14360SN/A * this software without specific prior written permission.
15360SN/A *
16360SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17360SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18360SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19360SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20360SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21360SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22360SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23360SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24360SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25360SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26360SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Steve Reinhardt
29360SN/A */
30360SN/A
31360SN/A#ifndef __ALPHA_LINUX_PROCESS_HH__
32360SN/A#define __ALPHA_LINUX_PROCESS_HH__
33360SN/A
342474SN/A#include "arch/alpha/process.hh"
35360SN/A
362474SN/Anamespace AlphaISA  {
37378SN/A
38378SN/A/// A process with emulated Alpha/Linux syscalls.
392474SN/Aclass AlphaLinuxProcess : public AlphaLiveProcess
40360SN/A{
41360SN/A  public:
42378SN/A    /// Constructor.
43360SN/A    AlphaLinuxProcess(const std::string &name,
44360SN/A                      ObjectFile *objFile,
452378SN/A                      System *system,
46360SN/A                      int stdin_fd, int stdout_fd, int stderr_fd,
47360SN/A                      std::vector<std::string> &argv,
48360SN/A                      std::vector<std::string> &envp);
49360SN/A
502093SN/A    virtual SyscallDesc* getDesc(int callnum);
512093SN/A
522093SN/A    /// The target system's hostname.
532093SN/A    static const char *hostname;
542093SN/A
552093SN/A     /// Array of syscall descriptors, indexed by call number.
562093SN/A    static SyscallDesc syscallDescs[];
572093SN/A
582093SN/A    const int Num_Syscall_Descs;
59360SN/A};
60360SN/A
612474SN/A} // namespace AlphaISA
62360SN/A#endif // __ALPHA_LINUX_PROCESS_HH__
63