# ========== Copyright Header Begin ==========================================
# OpenSPARC T2 Processor File: SS_StateHrf.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 ============================================
setup
= setups
[sys
.argv
[1]]
SS_CtrReg('SS','hpstate' , 'hrf', 0,RW____
,16,
, SS_CtrReg('SS','htstate' , 'hrf', 1,RW____
,16,
, SS_CtrReg('SS','hintp' , 'hrf', 3,RW____
, 8,
, SS_CtrReg('SS','htba' , 'hrf', 5,RW____
,64,
, SS_CtrReg('SS','hver' , 'hrf', 6,RO____
,64,
# HVER is read-only (RO____). This means a wrhrf_hver instruction
# is not generated. It is thus safe to make all the fields RW, and
# allow for cosim environments to accurately set the HVER to their
# required value through say valsync (SS_Strand::set_state followme).
, SS_CtrReg('SS','halt' , 'hrf',30,RW____
,64,
, SS_CtrReg('SS','hstick_cmpr','hrf',31,RW____
,64,
('int_dis' ,63,63, RW
, 1)
ctr_table
= SS_CtrTable(ctr_regs
)
if not setup
.product
in ['N2']:
ctr_table
.reg_at(30).access
= OOOOOO
# rd/wr halt is only implemented on product n2