process.hh revision 11851
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. 3911851Sbrandon.potter@amd.comclass AlphaLinuxProcess : public AlphaProcess 40360SN/A{ 41360SN/A public: 42378SN/A /// Constructor. 4311851Sbrandon.potter@amd.com AlphaLinuxProcess(ProcessParams * params, ObjectFile *objFile); 44360SN/A 452093SN/A virtual SyscallDesc* getDesc(int callnum); 462093SN/A 472093SN/A /// Array of syscall descriptors, indexed by call number. 482093SN/A static SyscallDesc syscallDescs[]; 492093SN/A 502093SN/A const int Num_Syscall_Descs; 51360SN/A}; 52360SN/A 532474SN/A} // namespace AlphaISA 545569Snate@binkert.org 55360SN/A#endif // __ALPHA_LINUX_PROCESS_HH__ 56