# ========== Copyright Header Begin ==========================================
# OpenSPARC T2 Processor File: sam-s10.py
# Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
# The above named program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License version 2 as published by the Free Software Foundation.
# The above named program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
# You should have received a copy of the GNU General Public
# License along with this work; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
# ========== Copyright Header End ============================================
# -p for number of running strands
# -m for mask of running strands (iso -p)
# -w for number of worker threads
#('nvram1-auto', 0x1f11000000)
, (cfg_cpu
+'-md.bin', 0x1f12000000)
, (cfg_cpu
+'-hv.bin', 0x1f12080000)
, ('reset.bin', 0xfff0000000)
, ('q.bin', 0xfff0010000)
, ('openboot.bin', 0xfff0080000)
, ('disk1', 0x1f40000000)
print 'Loading %(base)s - %(file)s' % {'file':file, 'base':hex(base
)}
# Hack the guest console address to morf a RAM
# address into a I/O address.
if sim
.mem
.x
[guest_bin
] == guest_old
:
print 'Patching guest console UART address at',guest_bin
sim
.mem
.x
[guest_bin
] = guest_new