1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 16 unchanged lines hidden (view full) --- 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Brad Beckmann 29 30import m5 31from m5.objects import * 32from m5.defines import buildEnv |
33 34def create_system(options, physmem, piobus = None, dma_devices = []): 35 36 protocol = buildEnv['PROTOCOL'] 37 exec "import %s" % protocol 38 try: 39 (cpu_sequencers, dir_cntrls, all_cntrls) = \ 40 eval("%s.create_system(options, physmem, piobus, dma_devices)" \ --- 49 unchanged lines hidden --- |