pseudo_inst.hh revision 9457
1298SN/A/*
22188SN/A * Copyright (c) 2003-2006 The Regents of The University of Michigan
3298SN/A * All rights reserved.
4298SN/A *
5298SN/A * Redistribution and use in source and binary forms, with or without
6298SN/A * modification, are permitted provided that the following conditions are
7298SN/A * met: redistributions of source code must retain the above copyright
8298SN/A * notice, this list of conditions and the following disclaimer;
9298SN/A * redistributions in binary form must reproduce the above copyright
10298SN/A * notice, this list of conditions and the following disclaimer in the
11298SN/A * documentation and/or other materials provided with the distribution;
12298SN/A * neither the name of the copyright holders nor the names of its
13298SN/A * contributors may be used to endorse or promote products derived from
14298SN/A * this software without specific prior written permission.
15298SN/A *
16298SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17298SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18298SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19298SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20298SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21298SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22298SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23298SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24298SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25298SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26298SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Nathan Binkert
29298SN/A */
30298SN/A
318543Sgblack@eecs.umich.edu#ifndef __SIM_PSEUDO_INST_HH__
328543Sgblack@eecs.umich.edu#define __SIM_PSEUDO_INST_HH__
338543Sgblack@eecs.umich.edu
342680Sktlim@umich.educlass ThreadContext;
35298SN/A
362980Sgblack@eecs.umich.edu//We need the "Tick" and "Addr" data types from here
376214Snate@binkert.org#include "base/types.hh"
382081SN/A
395504Snate@binkert.orgnamespace PseudoInst {
40349SN/A
415504Snate@binkert.orgvoid arm(ThreadContext *tc);
425504Snate@binkert.orgvoid quiesce(ThreadContext *tc);
438142SAli.Saidi@ARM.comvoid quiesceSkip(ThreadContext *tc);
445504Snate@binkert.orgvoid quiesceNs(ThreadContext *tc, uint64_t ns);
455504Snate@binkert.orgvoid quiesceCycles(ThreadContext *tc, uint64_t cycles);
465504Snate@binkert.orguint64_t quiesceTime(ThreadContext *tc);
475780Ssteve.reinhardt@amd.comuint64_t readfile(ThreadContext *tc, Addr vaddr, uint64_t len,
485780Ssteve.reinhardt@amd.com    uint64_t offset);
498734Sdam.sunwoo@arm.comuint64_t writefile(ThreadContext *tc, Addr vaddr, uint64_t len,
508734Sdam.sunwoo@arm.com    uint64_t offset, Addr filenameAddr);
515780Ssteve.reinhardt@amd.comvoid loadsymbol(ThreadContext *xc);
525780Ssteve.reinhardt@amd.comvoid addsymbol(ThreadContext *tc, Addr addr, Addr symbolAddr);
538555Sgblack@eecs.umich.eduuint64_t initParam(ThreadContext *xc);
545741Snate@binkert.orguint64_t rpns(ThreadContext *tc);
555808Snate@binkert.orgvoid wakeCPU(ThreadContext *tc, uint64_t cpuid);
565504Snate@binkert.orgvoid m5exit(ThreadContext *tc, Tick delay);
579457Svilanova@ac.upc.eduvoid m5fail(ThreadContext *tc, Tick delay, uint64_t code);
585504Snate@binkert.orgvoid resetstats(ThreadContext *tc, Tick delay, Tick period);
595504Snate@binkert.orgvoid dumpstats(ThreadContext *tc, Tick delay, Tick period);
605504Snate@binkert.orgvoid dumpresetstats(ThreadContext *tc, Tick delay, Tick period);
615504Snate@binkert.orgvoid m5checkpoint(ThreadContext *tc, Tick delay, Tick period);
625504Snate@binkert.orgvoid debugbreak(ThreadContext *tc);
635504Snate@binkert.orgvoid switchcpu(ThreadContext *tc);
647914SBrad.Beckmann@amd.comvoid workbegin(ThreadContext *tc, uint64_t workid, uint64_t threadid);
657914SBrad.Beckmann@amd.comvoid workend(ThreadContext *tc, uint64_t workid, uint64_t threadid);
665504Snate@binkert.org
677811Ssteve.reinhardt@amd.com} // namespace PseudoInst
688543Sgblack@eecs.umich.edu
698543Sgblack@eecs.umich.edu#endif // __SIM_PSEUDO_INST_HH__
70