vtophys.cc revision 5086:e7913ffb379d
112853Sgabeblack@google.com/*
212853Sgabeblack@google.com * Copyright (c) 2007 The Hewlett-Packard Development Company
312853Sgabeblack@google.com * All rights reserved.
412853Sgabeblack@google.com *
512853Sgabeblack@google.com * Redistribution and use of this software in source and binary forms,
612853Sgabeblack@google.com * with or without modification, are permitted provided that the
712853Sgabeblack@google.com * following conditions are met:
812853Sgabeblack@google.com *
912853Sgabeblack@google.com * The software must be used only for Non-Commercial Use which means any
1012853Sgabeblack@google.com * use which is NOT directed to receiving any direct monetary
1112853Sgabeblack@google.com * compensation for, or commercial advantage from such use.  Illustrative
1212853Sgabeblack@google.com * examples of non-commercial use are academic research, personal study,
1312853Sgabeblack@google.com * teaching, education and corporate research & development.
1412853Sgabeblack@google.com * Illustrative examples of commercial use are distributing products for
1512853Sgabeblack@google.com * commercial advantage and providing services using the software for
1612853Sgabeblack@google.com * commercial advantage.
1712853Sgabeblack@google.com *
1812853Sgabeblack@google.com * If you wish to use this software or functionality therein that may be
1912853Sgabeblack@google.com * covered by patents for commercial use, please contact:
2012853Sgabeblack@google.com *     Director of Intellectual Property Licensing
2112853Sgabeblack@google.com *     Office of Strategy and Technology
2212853Sgabeblack@google.com *     Hewlett-Packard Company
2312853Sgabeblack@google.com *     1501 Page Mill Road
2412853Sgabeblack@google.com *     Palo Alto, California  94304
2512853Sgabeblack@google.com *
2612853Sgabeblack@google.com * Redistributions of source code must retain the above copyright notice,
2712853Sgabeblack@google.com * this list of conditions and the following disclaimer.  Redistributions
2812853Sgabeblack@google.com * in binary form must reproduce the above copyright notice, this list of
2912853Sgabeblack@google.com * conditions and the following disclaimer in the documentation and/or
3012853Sgabeblack@google.com * other materials provided with the distribution.  Neither the name of
3112853Sgabeblack@google.com * the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
3212853Sgabeblack@google.com * contributors may be used to endorse or promote products derived from
3312853Sgabeblack@google.com * this software without specific prior written permission.  No right of
3412853Sgabeblack@google.com * sublicense is granted herewith.  Derivatives of the software and
3512853Sgabeblack@google.com * output created using the software may be prepared, but only for
3612853Sgabeblack@google.com * Non-Commercial Uses.  Derivatives of the software may be shared with
3712853Sgabeblack@google.com * others provided: (i) the others agree to abide by the list of
3812853Sgabeblack@google.com * conditions herein which includes the Non-Commercial Use restrictions;
3912853Sgabeblack@google.com * and (ii) such Derivatives of the software include the above copyright
4012853Sgabeblack@google.com * notice to acknowledge the contribution from this software where
4112853Sgabeblack@google.com * applicable, this list of conditions and the disclaimer below.
4212853Sgabeblack@google.com *
4312853Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4412853Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4512853Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4612853Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4712853Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4812853Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4912853Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
5012853Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5112853Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5212853Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5313197Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5413197Sgabeblack@google.com *
5513197Sgabeblack@google.com * Authors: Gabe Black
5613197Sgabeblack@google.com */
5713197Sgabeblack@google.com
5813197Sgabeblack@google.com#include <string>
5912853Sgabeblack@google.com
6012853Sgabeblack@google.com#include "arch/x86/vtophys.hh"
6112853Sgabeblack@google.com
6212853Sgabeblack@google.comusing namespace std;
6312853Sgabeblack@google.com
6412853Sgabeblack@google.comnamespace X86ISA
6512853Sgabeblack@google.com{
6612853Sgabeblack@google.com    Addr vtophys(Addr vaddr)
6712853Sgabeblack@google.com    {
6812853Sgabeblack@google.com        return vaddr;
6912853Sgabeblack@google.com    }
7012853Sgabeblack@google.com
7112853Sgabeblack@google.com    Addr vtophys(ThreadContext *tc, Addr addr)
7212853Sgabeblack@google.com    {
7312853Sgabeblack@google.com        return addr;
7412853Sgabeblack@google.com    }
7512853Sgabeblack@google.com}
7612853Sgabeblack@google.com