Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / cpus / vonk / n2 / lib / csr / src / N2_RstCsr.cc
// ========== Copyright Header Begin ==========================================
//
// OpenSPARC T2 Processor File: N2_RstCsr.cc
// 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 ============================================
/************************************************************************
**
** Copyright (C) 2005, Sun Microsystems, Inc.
**
** Sun considers its source code as an unpublished, proprietary
** trade secret and it is available only under strict license provisions.
** This copyright notice is placed here only to protect Sun in the event
** the source is deemed a published work. Disassembly, decompilation,
** or other means of reducing the object code to human readable form
** is prohibited by the license agreement under which this code is
** provided to the user or company in possession of this copy.
**
*************************************************************************/
#include "N2_RstCsr.h"
using namespace std;
RegisterAttribute N2_RstCsr::attributeTable[] = {
{ 0x8900000808ULL,0x8900000808ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xfffffffffffffff4ULL,0x0ULL,0xbULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_RESET_GEN","" },
{ 0x8900000810ULL,0x8900000810ULL,0x8ULL,1,0x2ULL,0x0ULL,RegisterAttribute::RW,0xfffffffffffff1e1ULL,0xe00ULL,0x1eULL,0x0ULL,0x0ULL,0xffffffffffffffffULL,"N2_RST_RST_RSET_STAT","" },
{ 0x8900000818ULL,0x8900000818ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xffffffffffff0000ULL,0x0ULL,0xffffULL,0xffffULL,0x0ULL,0x0ULL,"N2_RST_RST_RESET_SOURCE","" },
{ 0x8900000820ULL,0x8900000820ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xffffffffffff00ffULL,0x0ULL,0xff00ULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_RESET_FEE","" },
{ 0x8900000838ULL,0x8900000838ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xffffffffffffff8cULL,0x0ULL,0x73ULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_SSYS_RESET","" },
{ 0x8900000870ULL,0x8900000870ULL,0x8ULL,1,0x1400ULL,0x0ULL,RegisterAttribute::RW,0xffffffff00000000ULL,0x0ULL,0xffffffffULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_LOCK_TIME","" },
{ 0x8900000880ULL,0x8900000880ULL,0x8ULL,1,0xc00ULL,0x0ULL,RegisterAttribute::RW,0xffffffff00000000ULL,0x0ULL,0xffffffffULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_PROP_TIME","" },
{ 0x8900000890ULL,0x8900000890ULL,0x8ULL,1,0x640ULL,0x0ULL,RegisterAttribute::RW,0xffffffff00000000ULL,0x0ULL,0xffffffffULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_NIU_TIME","" }
};
const int N2_RstCsr::NUMBER_ENTRIES = sizeof(N2_RstCsr::attributeTable)/sizeof(N2_RstCsr::attributeTable[0]);
//======================================================================
//=============================================================================
N2_RstCsr::N2_RstCsr( ) :
SS_BaseCsr("N2_RstCsr", attributeTable, NUMBER_ENTRIES)
{
}
//=============================================================================
//=============================================================================
void N2_RstCsr::regAddrSpace()
{
const static std::string descr("N2_RstCsr address space");
registerAddressSpace(attributeTable, NUMBER_ENTRIES, descr);
}