vtophys.hh revision 8902
111507SCurtis.Dunham@arm.com/*
211507SCurtis.Dunham@arm.com * Copyright (c) 2007 The Hewlett-Packard Development Company
311960Sgabeblack@google.com * All rights reserved.
411960Sgabeblack@google.com *
511960Sgabeblack@google.com * The license below extends only to copyright in the software and shall
611960Sgabeblack@google.com * not be construed as granting a license to any other intellectual
711960Sgabeblack@google.com * property including but not limited to intellectual property relating
811960Sgabeblack@google.com * to a hardware implementation of the functionality of the software
911960Sgabeblack@google.com * licensed hereunder.  You may use the software subject to the license
1011960Sgabeblack@google.com * terms below provided that you ensure that this notice is replicated
1111960Sgabeblack@google.com * unmodified and in its entirety in all distributions of the software,
1211960Sgabeblack@google.com * modified or unmodified, in source code or in binary form.
1311960Sgabeblack@google.com *
1411960Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without
1511960Sgabeblack@google.com * modification, are permitted provided that the following conditions are
1611960Sgabeblack@google.com * met: redistributions of source code must retain the above copyright
1711960Sgabeblack@google.com * notice, this list of conditions and the following disclaimer;
1811960Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright
1911960Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the
2011960Sgabeblack@google.com * documentation and/or other materials provided with the distribution;
2111960Sgabeblack@google.com * neither the name of the copyright holders nor the names of its
2211960Sgabeblack@google.com * contributors may be used to endorse or promote products derived from
2311960Sgabeblack@google.com * this software without specific prior written permission.
2411960Sgabeblack@google.com *
2511960Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2611960Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2711960Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2811960Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2911960Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3011960Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3111960Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3211960Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3311960Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3411960Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3511960Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3611960Sgabeblack@google.com *
3711960Sgabeblack@google.com * Authors: Gabe Black
3811960Sgabeblack@google.com */
3911960Sgabeblack@google.com
4011960Sgabeblack@google.com#ifndef __ARCH_X86_VTOPHYS_HH__
4111960Sgabeblack@google.com#define __ARCH_X86_VTOPHYS_HH__
4211960Sgabeblack@google.com
4311960Sgabeblack@google.com#include "base/types.hh"
4411960Sgabeblack@google.com
4511960Sgabeblack@google.comclass ThreadContext;
4611960Sgabeblack@google.com
4711960Sgabeblack@google.comnamespace X86ISA
4811960Sgabeblack@google.com{
4911960Sgabeblack@google.com
5011960Sgabeblack@google.comAddr vtophys(Addr vaddr);
5111960Sgabeblack@google.comAddr vtophys(ThreadContext *tc, Addr vaddr);
5211960Sgabeblack@google.com
5311960Sgabeblack@google.com}
5411960Sgabeblack@google.com
5511960Sgabeblack@google.com#endif // __ARCH_X86_VTOPHYS_HH__
5611960Sgabeblack@google.com