process.hh revision 2199
1955SN/A/*
2955SN/A * Copyright (c) 2003-2004 The Regents of The University of Michigan
31762SN/A * All rights reserved.
4955SN/A *
5955SN/A * Redistribution and use in source and binary forms, with or without
6955SN/A * modification, are permitted provided that the following conditions are
7955SN/A * met: redistributions of source code must retain the above copyright
8955SN/A * notice, this list of conditions and the following disclaimer;
9955SN/A * redistributions in binary form must reproduce the above copyright
10955SN/A * notice, this list of conditions and the following disclaimer in the
11955SN/A * documentation and/or other materials provided with the distribution;
12955SN/A * neither the name of the copyright holders nor the names of its
13955SN/A * contributors may be used to endorse or promote products derived from
14955SN/A * this software without specific prior written permission.
15955SN/A *
16955SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17955SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18955SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19955SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20955SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21955SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22955SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23955SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24955SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25955SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26955SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27955SN/A */
282665Ssaidi@eecs.umich.edu
294762Snate@binkert.org#ifndef __ALPHA_LINUX_PROCESS_HH__
30955SN/A#define __ALPHA_LINUX_PROCESS_HH__
315522Snate@binkert.org
326143Snate@binkert.org#include "sim/process.hh"
334762Snate@binkert.org
345522Snate@binkert.org
35955SN/A/// A process with emulated Alpha/Linux syscalls.
365522Snate@binkert.orgclass AlphaLinuxProcess : public LiveProcess
37955SN/A{
385522Snate@binkert.org  public:
394202Sbinkertn@umich.edu    /// Constructor.
405742Snate@binkert.org    AlphaLinuxProcess(const std::string &name,
41955SN/A                      ObjectFile *objFile,
424381Sbinkertn@umich.edu                      int stdin_fd, int stdout_fd, int stderr_fd,
434381Sbinkertn@umich.edu                      std::vector<std::string> &argv,
448334Snate@binkert.org                      std::vector<std::string> &envp);
45955SN/A
46955SN/A    virtual SyscallDesc* getDesc(int callnum);
474202Sbinkertn@umich.edu
48955SN/A    /// The target system's hostname.
494382Sbinkertn@umich.edu    static const char *hostname;
504382Sbinkertn@umich.edu
514382Sbinkertn@umich.edu     /// Array of syscall descriptors, indexed by call number.
526654Snate@binkert.org    static SyscallDesc syscallDescs[];
535517Snate@binkert.org
548614Sgblack@eecs.umich.edu    const int Num_Syscall_Descs;
557674Snate@binkert.org};
566143Snate@binkert.org
576143Snate@binkert.org
586143Snate@binkert.org#endif // __ALPHA_LINUX_PROCESS_HH__
598233Snate@binkert.org