threadinfo.hh revision 10810:683ab55819fd
16313Sgblack@eecs.umich.edu/*
26313Sgblack@eecs.umich.edu * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com>
36313Sgblack@eecs.umich.edu * All rights reserved.
46313Sgblack@eecs.umich.edu *
56313Sgblack@eecs.umich.edu * This software was developed by the University of Cambridge Computer
66313Sgblack@eecs.umich.edu * Laboratory as part of the CTSRD Project, with support from the UK Higher
76313Sgblack@eecs.umich.edu * Education Innovation Fund (HEIF).
86313Sgblack@eecs.umich.edu *
96313Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
106313Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are
116313Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright
126313Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer;
136313Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright
146313Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the
156313Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution;
166313Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its
176313Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from
186313Sgblack@eecs.umich.edu * this software without specific prior written permission.
196313Sgblack@eecs.umich.edu *
206313Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
216313Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
226313Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
236313Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
246313Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
256313Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
266313Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
276313Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
286313Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
296313Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
306313Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
316313Sgblack@eecs.umich.edu */
326313Sgblack@eecs.umich.edu
336313Sgblack@eecs.umich.edu#ifndef __ARCH_GENERIC_FREEBSD_THREADINFO_HH__
348229Snate@binkert.org#define __ARCH_GENERIC_FREEBSD_THREADINFO_HH__
358229Snate@binkert.org
368229Snate@binkert.org#include "cpu/thread_context.hh"
376335Sgblack@eecs.umich.edu#include "sim/system.hh"
386313Sgblack@eecs.umich.edu#include "sim/vptr.hh"
396335Sgblack@eecs.umich.edu
4012106SRekai.GonzalezAlberquilla@arm.comnamespace FreeBSD {
419384SAndreas.Sandberg@arm.com
426335Sgblack@eecs.umich.educlass ThreadInfo
436313Sgblack@eecs.umich.edu{
446313Sgblack@eecs.umich.edu  private:
459384SAndreas.Sandberg@arm.com    ThreadContext *tc;
466335Sgblack@eecs.umich.edu    System *sys;
476313Sgblack@eecs.umich.edu
486313Sgblack@eecs.umich.edu  public:
496313Sgblack@eecs.umich.edu    ThreadInfo(ThreadContext *_tc)
509384SAndreas.Sandberg@arm.com        : tc(_tc), sys(tc->getSystemPtr())
517741Sgblack@eecs.umich.edu    {
527741Sgblack@eecs.umich.edu
536335Sgblack@eecs.umich.edu    }
547741Sgblack@eecs.umich.edu    ~ThreadInfo()
557741Sgblack@eecs.umich.edu    {}
567741Sgblack@eecs.umich.edu};
577741Sgblack@eecs.umich.edu
587741Sgblack@eecs.umich.edu} // namespace FreeBSD
597741Sgblack@eecs.umich.edu
607741Sgblack@eecs.umich.edu#endif // __ARCH_GENERIC_FREEBSD_THREADINFO_HH__
617741Sgblack@eecs.umich.edu