X86TLB.py revision 9701
12292SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company
22727Sktlim@umich.edu# All rights reserved.
32292SN/A#
42292SN/A# The license below extends only to copyright in the software and shall
52292SN/A# not be construed as granting a license to any other intellectual
62292SN/A# property including but not limited to intellectual property relating
72292SN/A# to a hardware implementation of the functionality of the software
82292SN/A# licensed hereunder.  You may use the software subject to the license
92292SN/A# terms below provided that you ensure that this notice is replicated
102292SN/A# unmodified and in its entirety in all distributions of the software,
112292SN/A# modified or unmodified, in source code or in binary form.
122292SN/A#
132292SN/A# Redistribution and use in source and binary forms, with or without
142292SN/A# modification, are permitted provided that the following conditions are
152292SN/A# met: redistributions of source code must retain the above copyright
162292SN/A# notice, this list of conditions and the following disclaimer;
172292SN/A# redistributions in binary form must reproduce the above copyright
182292SN/A# notice, this list of conditions and the following disclaimer in the
192292SN/A# documentation and/or other materials provided with the distribution;
202292SN/A# neither the name of the copyright holders nor the names of its
212292SN/A# contributors may be used to endorse or promote products derived from
222292SN/A# this software without specific prior written permission.
232292SN/A#
242292SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
252292SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
262292SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
272689Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
282689Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
292292SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
302292SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
312329SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
322980Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
332329SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
342329SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
352292SN/A#
366221Snate@binkert.org# Authors: Gabe Black
372292SN/A
386221Snate@binkert.orgfrom m5.params import *
395529Snate@binkert.orgfrom m5.proxy import *
404192Sktlim@umich.edu
414192Sktlim@umich.edufrom BaseTLB import BaseTLB
424192Sktlim@umich.edufrom MemObject import MemObject
434192Sktlim@umich.edu
444192Sktlim@umich.educlass X86PagetableWalker(MemObject):
454192Sktlim@umich.edu    type = 'X86PagetableWalker'
464192Sktlim@umich.edu    cxx_class = 'X86ISA::Walker'
474192Sktlim@umich.edu    cxx_header = 'arch/x86/pagetable_walker.hh'
484192Sktlim@umich.edu    port = MasterPort("Port for the hardware table walker")
494192Sktlim@umich.edu    system = Param.System(Parent.any, "system object")
504192Sktlim@umich.edu    num_squash_per_cycle = Param.Unsigned(4,
514192Sktlim@umich.edu            "Number of outstanding walks that can be squashed per cycle")
524192Sktlim@umich.edu
532292SN/Aclass X86TLB(BaseTLB):
542907Sktlim@umich.edu    type = 'X86TLB'
552907Sktlim@umich.edu    cxx_class = 'X86ISA::TLB'
562907Sktlim@umich.edu    cxx_header = 'arch/x86/tlb.hh'
572907Sktlim@umich.edu    size = Param.Int(64, "TLB size")
582907Sktlim@umich.edu    walker = Param.X86PagetableWalker(\
592907Sktlim@umich.edu            X86PagetableWalker(), "page table walker")
602907Sktlim@umich.edu