5edecc8340e9f0a7a39b1332945cb453c4c993f2
# ========== Copyright Header Begin ==========================================
# OpenSPARC T2 Processor File: SS_StateCtr.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]]
ctr_regs
.extend(SS_StateAsr
.ctr_regs
)
ctr_regs
.extend(SS_StatePrf
.ctr_regs
)
ctr_regs
.extend(SS_StateHrf
.ctr_regs
)
ctr_regs
.extend(SS_StateSrf
.ctr_regs
)
SS_AsiCtrReg('SS','lsu_ctr',PRIVATE
,
, SS_CtrReg('SS','tsb_tte_tag',0,0,0,64,
('va' , 0,41,RW
,0), # va bits 63:22 actually
, SS_CtrReg('SS','tsb_tte_data',0,0,0,64,
('size' , 0, 3,RW
,0), # note 4 bits
('pa' ,13,55,RW
,0), # note 56 bits of PA ...
ctr_regs
.extend(asi_regs
)
h_file
=open('%s' % sys
.argv
[2],'w')
h_base_name
= sys
.argv
[2].split('/')[-1].split('.')[0]
h_file
.write('#ifndef __'+h_base_name
+'_h__\n')
h_file
.write('#define __'+h_base_name
+'_h__\n')
h_file
.write('#include "SS_AsiCtrReg.h"\n')
h_file
.write('#include "SS_SnapShot.h"\n')