X86TLB.py revision 4997:e7380529bd2d
110391SAndreas.Sandberg@ARM.com# Copyright (c) 2007 The Hewlett-Packard Development Company
211204Ssascha.bischoff@ARM.com# All rights reserved.
310391SAndreas.Sandberg@ARM.com#
410391SAndreas.Sandberg@ARM.com# Redistribution and use of this software in source and binary forms,
510391SAndreas.Sandberg@ARM.com# with or without modification, are permitted provided that the
610391SAndreas.Sandberg@ARM.com# following conditions are met:
710391SAndreas.Sandberg@ARM.com#
810391SAndreas.Sandberg@ARM.com# The software must be used only for Non-Commercial Use which means any
910391SAndreas.Sandberg@ARM.com# use which is NOT directed to receiving any direct monetary
1010391SAndreas.Sandberg@ARM.com# compensation for, or commercial advantage from such use.  Illustrative
1110391SAndreas.Sandberg@ARM.com# examples of non-commercial use are academic research, personal study,
1210391SAndreas.Sandberg@ARM.com# teaching, education and corporate research & development.
1310391SAndreas.Sandberg@ARM.com# Illustrative examples of commercial use are distributing products for
1410391SAndreas.Sandberg@ARM.com# commercial advantage and providing services using the software for
1510391SAndreas.Sandberg@ARM.com# commercial advantage.
1610391SAndreas.Sandberg@ARM.com#
1710391SAndreas.Sandberg@ARM.com# If you wish to use this software or functionality therein that may be
1810391SAndreas.Sandberg@ARM.com# covered by patents for commercial use, please contact:
1910391SAndreas.Sandberg@ARM.com#     Director of Intellectual Property Licensing
2010391SAndreas.Sandberg@ARM.com#     Office of Strategy and Technology
2110391SAndreas.Sandberg@ARM.com#     Hewlett-Packard Company
2210391SAndreas.Sandberg@ARM.com#     1501 Page Mill Road
2310391SAndreas.Sandberg@ARM.com#     Palo Alto, California  94304
2410391SAndreas.Sandberg@ARM.com#
2510391SAndreas.Sandberg@ARM.com# Redistributions of source code must retain the above copyright notice,
2610391SAndreas.Sandberg@ARM.com# this list of conditions and the following disclaimer.  Redistributions
2710391SAndreas.Sandberg@ARM.com# in binary form must reproduce the above copyright notice, this list of
2810391SAndreas.Sandberg@ARM.com# conditions and the following disclaimer in the documentation and/or
2910391SAndreas.Sandberg@ARM.com# other materials provided with the distribution.  Neither the name of
3010391SAndreas.Sandberg@ARM.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
3110391SAndreas.Sandberg@ARM.com# contributors may be used to endorse or promote products derived from
3210391SAndreas.Sandberg@ARM.com# this software without specific prior written permission.  No right of
3310391SAndreas.Sandberg@ARM.com# sublicense is granted herewith.  Derivatives of the software and
3410391SAndreas.Sandberg@ARM.com# output created using the software may be prepared, but only for
3510391SAndreas.Sandberg@ARM.com# Non-Commercial Uses.  Derivatives of the software may be shared with
3610391SAndreas.Sandberg@ARM.com# others provided: (i) the others agree to abide by the list of
3710391SAndreas.Sandberg@ARM.com# conditions herein which includes the Non-Commercial Use restrictions;
3810391SAndreas.Sandberg@ARM.com# and (ii) such Derivatives of the software include the above copyright
3910391SAndreas.Sandberg@ARM.com# notice to acknowledge the contribution from this software where
4010391SAndreas.Sandberg@ARM.com# applicable, this list of conditions and the disclaimer below.
4110391SAndreas.Sandberg@ARM.com#
4210391SAndreas.Sandberg@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4310391SAndreas.Sandberg@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4410391SAndreas.Sandberg@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4510391SAndreas.Sandberg@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4610391SAndreas.Sandberg@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4710391SAndreas.Sandberg@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4810391SAndreas.Sandberg@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4910391SAndreas.Sandberg@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5010391SAndreas.Sandberg@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5110391SAndreas.Sandberg@ARM.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5210391SAndreas.Sandberg@ARM.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5310391SAndreas.Sandberg@ARM.com#
5410391SAndreas.Sandberg@ARM.com# Authors: Gabe Black
5510391SAndreas.Sandberg@ARM.com
5610391SAndreas.Sandberg@ARM.comfrom m5.SimObject import SimObject
5710391SAndreas.Sandberg@ARM.comfrom m5.params import *
5810391SAndreas.Sandberg@ARM.comclass X86TLB(SimObject):
5910391SAndreas.Sandberg@ARM.com    type = 'X86TLB'
6010391SAndreas.Sandberg@ARM.com    abstract = True
6110391SAndreas.Sandberg@ARM.com    #size = Param.Int("TLB size")
6210391SAndreas.Sandberg@ARM.com
6310391SAndreas.Sandberg@ARM.comclass X86DTB(X86TLB):
6410391SAndreas.Sandberg@ARM.com    type = 'X86DTB'
6510391SAndreas.Sandberg@ARM.com    cxx_namespace = 'X86ISA'
6610391SAndreas.Sandberg@ARM.com    cxx_class = 'DTB'
6710391SAndreas.Sandberg@ARM.com
6810391SAndreas.Sandberg@ARM.com    #size = 64
6910391SAndreas.Sandberg@ARM.com
7010391SAndreas.Sandberg@ARM.comclass X86ITB(X86TLB):
7110391SAndreas.Sandberg@ARM.com    type = 'X86ITB'
7210391SAndreas.Sandberg@ARM.com    cxx_namespace = 'X86ISA'
7310391SAndreas.Sandberg@ARM.com    cxx_class = 'ITB'
7410391SAndreas.Sandberg@ARM.com
7510391SAndreas.Sandberg@ARM.com    #size = 64
7610391SAndreas.Sandberg@ARM.com