X86TLB.py revision 5236
15086Sgblack@eecs.umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 25086Sgblack@eecs.umich.edu# All rights reserved. 38466Snilay@cs.wisc.edu# 45086Sgblack@eecs.umich.edu# Redistribution and use of this software in source and binary forms, 55086Sgblack@eecs.umich.edu# with or without modification, are permitted provided that the 67087Snate@binkert.org# following conditions are met: 77087Snate@binkert.org# 87087Snate@binkert.org# The software must be used only for Non-Commercial Use which means any 97087Snate@binkert.org# use which is NOT directed to receiving any direct monetary 107087Snate@binkert.org# compensation for, or commercial advantage from such use. Illustrative 117087Snate@binkert.org# examples of non-commercial use are academic research, personal study, 127087Snate@binkert.org# teaching, education and corporate research & development. 137087Snate@binkert.org# Illustrative examples of commercial use are distributing products for 145086Sgblack@eecs.umich.edu# commercial advantage and providing services using the software for 157087Snate@binkert.org# commercial advantage. 167087Snate@binkert.org# 177087Snate@binkert.org# If you wish to use this software or functionality therein that may be 187087Snate@binkert.org# covered by patents for commercial use, please contact: 197087Snate@binkert.org# Director of Intellectual Property Licensing 207087Snate@binkert.org# Office of Strategy and Technology 217087Snate@binkert.org# Hewlett-Packard Company 227087Snate@binkert.org# 1501 Page Mill Road 235086Sgblack@eecs.umich.edu# Palo Alto, California 94304 247087Snate@binkert.org# 255086Sgblack@eecs.umich.edu# Redistributions of source code must retain the above copyright notice, 265086Sgblack@eecs.umich.edu# this list of conditions and the following disclaimer. Redistributions 275086Sgblack@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of 285086Sgblack@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or 295086Sgblack@eecs.umich.edu# other materials provided with the distribution. Neither the name of 305086Sgblack@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 315086Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 325086Sgblack@eecs.umich.edu# this software without specific prior written permission. No right of 335086Sgblack@eecs.umich.edu# sublicense is granted herewith. Derivatives of the software and 345086Sgblack@eecs.umich.edu# output created using the software may be prepared, but only for 355086Sgblack@eecs.umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 365086Sgblack@eecs.umich.edu# others provided: (i) the others agree to abide by the list of 375086Sgblack@eecs.umich.edu# conditions herein which includes the Non-Commercial Use restrictions; 385086Sgblack@eecs.umich.edu# and (ii) such Derivatives of the software include the above copyright 395086Sgblack@eecs.umich.edu# notice to acknowledge the contribution from this software where 405086Sgblack@eecs.umich.edu# applicable, this list of conditions and the disclaimer below. 4111793Sbrandon.potter@amd.com# 4211793Sbrandon.potter@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 435647Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 448466Snilay@cs.wisc.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 455135Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 465647Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 479889Sandreas@sandberg.pp.se# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 4811800Sbrandon.potter@amd.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 495086Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 505086Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 515086Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 527707Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 537707Sgblack@eecs.umich.edu# 547707Sgblack@eecs.umich.edu# Authors: Gabe Black 5510553Salexandru.dutu@amd.com 569887Sandreas@sandberg.pp.sefrom MemObject import MemObject 579887Sandreas@sandberg.pp.sefrom m5.params import * 589887Sandreas@sandberg.pp.se 599887Sandreas@sandberg.pp.seclass X86TLB(MemObject): 609887Sandreas@sandberg.pp.se type = 'X86TLB' 619887Sandreas@sandberg.pp.se abstract = True 629887Sandreas@sandberg.pp.se size = Param.Int("TLB size") 639887Sandreas@sandberg.pp.se walker_port = Port("Port for the hardware table walker") 649887Sandreas@sandberg.pp.se system = Param.System(Parent.any, "system object") 659887Sandreas@sandberg.pp.se 669887Sandreas@sandberg.pp.seclass X86DTB(X86TLB): 679887Sandreas@sandberg.pp.se type = 'X86DTB' 689887Sandreas@sandberg.pp.se cxx_namespace = 'X86ISA' 699887Sandreas@sandberg.pp.se cxx_class = 'DTB' 709887Sandreas@sandberg.pp.se 719887Sandreas@sandberg.pp.se size = 64 725086Sgblack@eecs.umich.edu 735135Sgblack@eecs.umich.educlass X86ITB(X86TLB): 745135Sgblack@eecs.umich.edu type = 'X86ITB' 755135Sgblack@eecs.umich.edu cxx_namespace = 'X86ISA' 766048Sgblack@eecs.umich.edu cxx_class = 'ITB' 776048Sgblack@eecs.umich.edu 786048Sgblack@eecs.umich.edu size = 64 796048Sgblack@eecs.umich.edu