process.hh revision 8229
12207SN/A/*
25222Sksewell@umich.edu * Copyright (c) 2006 The Regents of The University of Michigan
32207SN/A * All rights reserved.
42207SN/A *
52207SN/A * Redistribution and use in source and binary forms, with or without
62207SN/A * modification, are permitted provided that the following conditions are
72207SN/A * met: redistributions of source code must retain the above copyright
82207SN/A * notice, this list of conditions and the following disclaimer;
92207SN/A * redistributions in binary form must reproduce the above copyright
102207SN/A * notice, this list of conditions and the following disclaimer in the
112207SN/A * documentation and/or other materials provided with the distribution;
122207SN/A * neither the name of the copyright holders nor the names of its
132207SN/A * contributors may be used to endorse or promote products derived from
142207SN/A * this software without specific prior written permission.
152207SN/A *
162207SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172207SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182207SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192207SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202207SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212207SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222207SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232207SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242207SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252207SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262207SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Gabe Black
292665Ssaidi@eecs.umich.edu *          Ali Saidi
302207SN/A */
312207SN/A
322207SN/A#ifndef __MIPS_PROCESS_HH__
332207SN/A#define __MIPS_PROCESS_HH__
342207SN/A
352454SN/A#include <string>
362454SN/A#include <vector>
378229Snate@binkert.org
382474SN/A#include "sim/process.hh"
392207SN/A
402454SN/Aclass LiveProcess;
412454SN/Aclass ObjectFile;
422454SN/Aclass System;
432447SN/A
442474SN/Aclass MipsLiveProcess : public LiveProcess
452207SN/A{
462474SN/A  protected:
475154Sgblack@eecs.umich.edu    MipsLiveProcess(LiveProcessParams * params, ObjectFile *objFile);
482207SN/A
497532Ssteve.reinhardt@amd.com    void initState();
506650Sksewell@umich.edu
516811SMatt DeVuyst    template<class IntType>
526811SMatt DeVuyst    void argsInit(int pageSize);
532909Sksewell@umich.edu
545958Sgblack@eecs.umich.edu  public:
556701Sgblack@eecs.umich.edu    MipsISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
565958Sgblack@eecs.umich.edu    void setSyscallArg(ThreadContext *tc, int i, MipsISA::IntReg val);
575958Sgblack@eecs.umich.edu    void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);
582474SN/A};
592474SN/A
602207SN/A
612207SN/A#endif // __MIPS_PROCESS_HH__
62