sc_simcontext.hh revision 12940:f191f383f3bf
16145Snate@binkert.org/*
26145Snate@binkert.org * Copyright 2018 Google, Inc.
36145Snate@binkert.org *
46145Snate@binkert.org * Redistribution and use in source and binary forms, with or without
56145Snate@binkert.org * modification, are permitted provided that the following conditions are
66145Snate@binkert.org * met: redistributions of source code must retain the above copyright
76145Snate@binkert.org * notice, this list of conditions and the following disclaimer;
86145Snate@binkert.org * redistributions in binary form must reproduce the above copyright
96145Snate@binkert.org * notice, this list of conditions and the following disclaimer in the
106145Snate@binkert.org * documentation and/or other materials provided with the distribution;
116145Snate@binkert.org * neither the name of the copyright holders nor the names of its
126145Snate@binkert.org * contributors may be used to endorse or promote products derived from
136145Snate@binkert.org * this software without specific prior written permission.
146145Snate@binkert.org *
156145Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
166145Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
176145Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
186145Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
196145Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
206145Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
216145Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
226145Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
236145Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
246145Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
256145Snate@binkert.org * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
266145Snate@binkert.org *
276145Snate@binkert.org * Authors: Gabe Black
286145Snate@binkert.org */
297048Snate@binkert.org
307048Snate@binkert.org#ifndef __SYSTEMC_EXT_CORE_SC_SIMCONTEXT_HH__
316145Snate@binkert.org#define __SYSTEMC_EXT_CORE_SC_SIMCONTEXT_HH__
327055Snate@binkert.org
337055Snate@binkert.org#include "../dt/int/sc_nbdefs.hh"
3410302Snilay@cs.wisc.edu#include "sc_process_handle.hh"
357048Snate@binkert.org
366154Snate@binkert.orgnamespace sc_core
376145Snate@binkert.org{
387048Snate@binkert.org
397048Snate@binkert.orgclass sc_simcontext
407048Snate@binkert.org{
417048Snate@binkert.org  public:
427048Snate@binkert.org    sc_dt::uint64 delta_count() const;
437048Snate@binkert.org    void reset();
446145Snate@binkert.org    sc_curr_proc_handle get_curr_proc_info();
457048Snate@binkert.org};
467048Snate@binkert.org
477048Snate@binkert.orgsc_simcontext *sc_get_curr_simcontext();
487048Snate@binkert.org
497055Snate@binkert.org} // namespace sc_core
507048Snate@binkert.org
516145Snate@binkert.org#endif  //__SYSTEMC_EXT_CORE_SC_SIMCONTEXT_HH__
527055Snate@binkert.org