AlphaSystem.py revision 8773
14486Sbinkertn@umich.edu# Copyright (c) 2007 The Regents of The University of Michigan
24486Sbinkertn@umich.edu# All rights reserved.
34486Sbinkertn@umich.edu#
44486Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without
54486Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are
64486Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright
74486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer;
84486Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright
94486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the
104486Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution;
114486Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its
124486Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from
134486Sbinkertn@umich.edu# this software without specific prior written permission.
144486Sbinkertn@umich.edu#
154486Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
164486Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
174486Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
184486Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
194486Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
204486Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
214486Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
224486Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
234486Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
244486Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
254486Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
264486Sbinkertn@umich.edu#
274486Sbinkertn@umich.edu# Authors: Nathan Binkert
284486Sbinkertn@umich.edu
294486Sbinkertn@umich.edufrom m5.params import *
308773Sgblack@eecs.umich.edufrom m5.proxy import *
314486Sbinkertn@umich.edufrom System import System
324486Sbinkertn@umich.edu
334486Sbinkertn@umich.educlass AlphaSystem(System):
344486Sbinkertn@umich.edu    type = 'AlphaSystem'
354486Sbinkertn@umich.edu    console = Param.String("file that contains the console code")
364486Sbinkertn@umich.edu    pal = Param.String("file that contains palcode")
374486Sbinkertn@umich.edu    system_type = Param.UInt64("Type of system we are emulating")
384486Sbinkertn@umich.edu    system_rev = Param.UInt64("Revision of system we are emulating")
397580SAli.Saidi@arm.com    load_addr_mask = 0xffffffffff
404486Sbinkertn@umich.edu
414486Sbinkertn@umich.educlass LinuxAlphaSystem(AlphaSystem):
424486Sbinkertn@umich.edu    type = 'LinuxAlphaSystem'
434486Sbinkertn@umich.edu    system_type = 34
444486Sbinkertn@umich.edu    system_rev = 1 << 10
454486Sbinkertn@umich.edu
468773Sgblack@eecs.umich.edu    boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency,
478773Sgblack@eecs.umich.edu                                         "boot processor frequency")
488773Sgblack@eecs.umich.edu
494486Sbinkertn@umich.educlass FreebsdAlphaSystem(AlphaSystem):
504486Sbinkertn@umich.edu    type = 'FreebsdAlphaSystem'
514486Sbinkertn@umich.edu    system_type = 34
524486Sbinkertn@umich.edu    system_rev = 1 << 10
534486Sbinkertn@umich.edu
544486Sbinkertn@umich.educlass Tru64AlphaSystem(AlphaSystem):
554486Sbinkertn@umich.edu    type = 'Tru64AlphaSystem'
564486Sbinkertn@umich.edu    system_type = 12
574486Sbinkertn@umich.edu    system_rev = 2<<1
58