ArmTLB.py revision 6019:76890d8b28f5
14159Sgblack@eecs.umich.edu# -*- mode:python -*-
210299Salexandru.dutu@amd.com
34159Sgblack@eecs.umich.edu# Copyright (c) 2007-2008 The Florida State University
44159Sgblack@eecs.umich.edu# All rights reserved.
54159Sgblack@eecs.umich.edu#
67087Snate@binkert.org# Redistribution and use in source and binary forms, with or without
77087Snate@binkert.org# modification, are permitted provided that the following conditions are
87087Snate@binkert.org# met: redistributions of source code must retain the above copyright
97087Snate@binkert.org# notice, this list of conditions and the following disclaimer;
107087Snate@binkert.org# redistributions in binary form must reproduce the above copyright
117087Snate@binkert.org# notice, this list of conditions and the following disclaimer in the
127087Snate@binkert.org# documentation and/or other materials provided with the distribution;
137087Snate@binkert.org# neither the name of the copyright holders nor the names of its
144159Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
157087Snate@binkert.org# this software without specific prior written permission.
167087Snate@binkert.org#
177087Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
187087Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
197087Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
207087Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
217087Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
227087Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234159Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
247087Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254159Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264159Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274159Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284159Sgblack@eecs.umich.edu#
294159Sgblack@eecs.umich.edu# Authors: Stephen Hines
304159Sgblack@eecs.umich.edu
314159Sgblack@eecs.umich.edufrom m5.SimObject import SimObject
324159Sgblack@eecs.umich.edufrom m5.params import *
334159Sgblack@eecs.umich.edu
344159Sgblack@eecs.umich.educlass ArmTLB(SimObject):
354159Sgblack@eecs.umich.edu    abstract = True
364159Sgblack@eecs.umich.edu    type = 'ArmTLB'
374159Sgblack@eecs.umich.edu    cxx_namespace = 'ArmISA'
384159Sgblack@eecs.umich.edu    cxx_class = 'TLB'
394159Sgblack@eecs.umich.edu    size = Param.Int("TLB size")
404159Sgblack@eecs.umich.edu
414159Sgblack@eecs.umich.educlass ArmDTB(ArmTLB):
424159Sgblack@eecs.umich.edu    type = 'ArmDTB'
434159Sgblack@eecs.umich.edu    cxx_namespace = 'ArmISA'
445124Sgblack@eecs.umich.edu    cxx_class = 'DTB'
455124Sgblack@eecs.umich.edu    size = 64
4610299Salexandru.dutu@amd.com
475124Sgblack@eecs.umich.educlass ArmITB(ArmTLB):
485237Sgblack@eecs.umich.edu    type = 'ArmITB'
496216Snate@binkert.org    cxx_namespace = 'ArmISA'
508953Sgblack@eecs.umich.edu    cxx_class = 'ITB'
5110299Salexandru.dutu@amd.com    size = 64
5210299Salexandru.dutu@amd.com
534159Sgblack@eecs.umich.educlass ArmUTB(ArmTLB):
545124Sgblack@eecs.umich.edu    type = 'ArmUTB'
5511800Sbrandon.potter@amd.com    cxx_namespace = 'ArmISA'
565124Sgblack@eecs.umich.edu    cxx_class = 'UTB'
574159Sgblack@eecs.umich.edu    size = 64
584159Sgblack@eecs.umich.edu
598953Sgblack@eecs.umich.edu