X86TLB.py revision 4997:e7380529bd2d
111183Serfan.azarkhish@unibo.it# Copyright (c) 2007 The Hewlett-Packard Development Company
211183Serfan.azarkhish@unibo.it# All rights reserved.
311183Serfan.azarkhish@unibo.it#
411183Serfan.azarkhish@unibo.it# Redistribution and use of this software in source and binary forms,
511183Serfan.azarkhish@unibo.it# with or without modification, are permitted provided that the
611183Serfan.azarkhish@unibo.it# following conditions are met:
711183Serfan.azarkhish@unibo.it#
811183Serfan.azarkhish@unibo.it# The software must be used only for Non-Commercial Use which means any
911183Serfan.azarkhish@unibo.it# use which is NOT directed to receiving any direct monetary
1011183Serfan.azarkhish@unibo.it# compensation for, or commercial advantage from such use.  Illustrative
1111183Serfan.azarkhish@unibo.it# examples of non-commercial use are academic research, personal study,
1211183Serfan.azarkhish@unibo.it# teaching, education and corporate research & development.
1311183Serfan.azarkhish@unibo.it# Illustrative examples of commercial use are distributing products for
1411183Serfan.azarkhish@unibo.it# commercial advantage and providing services using the software for
1511183Serfan.azarkhish@unibo.it# commercial advantage.
1611183Serfan.azarkhish@unibo.it#
1711183Serfan.azarkhish@unibo.it# If you wish to use this software or functionality therein that may be
1811183Serfan.azarkhish@unibo.it# covered by patents for commercial use, please contact:
1911183Serfan.azarkhish@unibo.it#     Director of Intellectual Property Licensing
2011183Serfan.azarkhish@unibo.it#     Office of Strategy and Technology
2111183Serfan.azarkhish@unibo.it#     Hewlett-Packard Company
2211183Serfan.azarkhish@unibo.it#     1501 Page Mill Road
2311183Serfan.azarkhish@unibo.it#     Palo Alto, California  94304
2411183Serfan.azarkhish@unibo.it#
2511183Serfan.azarkhish@unibo.it# Redistributions of source code must retain the above copyright notice,
2611183Serfan.azarkhish@unibo.it# this list of conditions and the following disclaimer.  Redistributions
2711183Serfan.azarkhish@unibo.it# in binary form must reproduce the above copyright notice, this list of
2811183Serfan.azarkhish@unibo.it# conditions and the following disclaimer in the documentation and/or
2911183Serfan.azarkhish@unibo.it# other materials provided with the distribution.  Neither the name of
3011183Serfan.azarkhish@unibo.it# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
3111183Serfan.azarkhish@unibo.it# contributors may be used to endorse or promote products derived from
3211183Serfan.azarkhish@unibo.it# this software without specific prior written permission.  No right of
3311183Serfan.azarkhish@unibo.it# sublicense is granted herewith.  Derivatives of the software and
3411183Serfan.azarkhish@unibo.it# output created using the software may be prepared, but only for
3511183Serfan.azarkhish@unibo.it# Non-Commercial Uses.  Derivatives of the software may be shared with
3611183Serfan.azarkhish@unibo.it# others provided: (i) the others agree to abide by the list of
3711183Serfan.azarkhish@unibo.it# conditions herein which includes the Non-Commercial Use restrictions;
3811183Serfan.azarkhish@unibo.it# and (ii) such Derivatives of the software include the above copyright
3911183Serfan.azarkhish@unibo.it# notice to acknowledge the contribution from this software where
4011551Sabdul.mutaal@gmail.com# applicable, this list of conditions and the disclaimer below.
4111183Serfan.azarkhish@unibo.it#
4211183Serfan.azarkhish@unibo.it# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4311183Serfan.azarkhish@unibo.it# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4411183Serfan.azarkhish@unibo.it# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4511183Serfan.azarkhish@unibo.it# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4611183Serfan.azarkhish@unibo.it# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4711183Serfan.azarkhish@unibo.it# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4811183Serfan.azarkhish@unibo.it# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4911183Serfan.azarkhish@unibo.it# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5011183Serfan.azarkhish@unibo.it# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5111183Serfan.azarkhish@unibo.it# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5211551Sabdul.mutaal@gmail.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5311551Sabdul.mutaal@gmail.com#
5411551Sabdul.mutaal@gmail.com# Authors: Gabe Black
5511551Sabdul.mutaal@gmail.com
5611183Serfan.azarkhish@unibo.itfrom m5.SimObject import SimObject
5711183Serfan.azarkhish@unibo.itfrom m5.params import *
5811183Serfan.azarkhish@unibo.itclass X86TLB(SimObject):
5911183Serfan.azarkhish@unibo.it    type = 'X86TLB'
6011183Serfan.azarkhish@unibo.it    abstract = True
6111837Swendy.elsasser@arm.com    #size = Param.Int("TLB size")
6211183Serfan.azarkhish@unibo.it
6311183Serfan.azarkhish@unibo.itclass X86DTB(X86TLB):
6411183Serfan.azarkhish@unibo.it    type = 'X86DTB'
6511183Serfan.azarkhish@unibo.it    cxx_namespace = 'X86ISA'
6611183Serfan.azarkhish@unibo.it    cxx_class = 'DTB'
6711183Serfan.azarkhish@unibo.it
6811551Sabdul.mutaal@gmail.com    #size = 64
6911183Serfan.azarkhish@unibo.it
7011551Sabdul.mutaal@gmail.comclass X86ITB(X86TLB):
7111551Sabdul.mutaal@gmail.com    type = 'X86ITB'
7211551Sabdul.mutaal@gmail.com    cxx_namespace = 'X86ISA'
7311551Sabdul.mutaal@gmail.com    cxx_class = 'ITB'
7411551Sabdul.mutaal@gmail.com
7511183Serfan.azarkhish@unibo.it    #size = 64
7611551Sabdul.mutaal@gmail.com