vtophys.hh revision 8852
12SN/A/*
21762SN/A * Copyright (c) 2002-2005 The Regents of The University of Michigan
32SN/A * Copyright (c) 2007 MIPS Technologies, Inc.
42SN/A * All rights reserved.
52SN/A *
62SN/A * Redistribution and use in source and binary forms, with or without
72SN/A * modification, are permitted provided that the following conditions are
82SN/A * met: redistributions of source code must retain the above copyright
92SN/A * notice, this list of conditions and the following disclaimer;
102SN/A * redistributions in binary form must reproduce the above copyright
112SN/A * notice, this list of conditions and the following disclaimer in the
122SN/A * documentation and/or other materials provided with the distribution;
132SN/A * neither the name of the copyright holders nor the names of its
142SN/A * contributors may be used to endorse or promote products derived from
152SN/A * this software without specific prior written permission.
162SN/A *
172SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272665Ssaidi@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu *
292665Ssaidi@eecs.umich.edu * Authors: Ali Saidi
302665Ssaidi@eecs.umich.edu *          Nathan Binkert
312SN/A *          Jaidev Patwardhan
322SN/A */
332SN/A
342SN/A#ifndef __ARCH_MIPS_VTOPHYS_H__
352521SN/A#define __ARCH_MIPS_VTOPHYS_H__
361110SN/A
372521SN/A#include "arch/mips/isa_traits.hh"
381110SN/A#include "arch/mips/utility.hh"
392680Sktlim@umich.edu
408232Snate@binkert.orgclass ThreadContext;
418706Sandreas.hansson@arm.com
422SN/Anamespace MipsISA {
432SN/A    Addr vtophys(Addr vaddr);
442SN/A    Addr vtophys(ThreadContext *tc, Addr vaddr);
455568Snate@binkert.org
465568Snate@binkert.org};
475568Snate@binkert.org#endif // __ARCH_MIPS_VTOPHYS_H__
488706Sandreas.hansson@arm.com
492SN/A