Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / cpus / vonk / ss / api / memsync / src / TsoCheckerCmd.cc
CommitLineData
920dae64
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: TsoCheckerCmd.cc
4// Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
5// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
6//
7// The above named program is free software; you can redistribute it and/or
8// modify it under the terms of the GNU General Public
9// License version 2 as published by the Free Software Foundation.
10//
11// The above named program is distributed in the hope that it will be
12// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// General Public License for more details.
15//
16// You should have received a copy of the GNU General Public
17// License along with this work; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19//
20// ========== Copyright Header End ============================================
21/************************************************************************
22**
23** Copyright (C) 2002, Sun Microsystems, Inc.
24**
25** Sun considers its source code as an unpublished, proprietary
26** trade secret and it is available only under strict license provisions.
27** This copyright notice is placed here only to protect Sun in the event
28** the source is deemed a published work. Disassembly, decompilation,
29** or other means of reducing the object code to human readable form
30** is prohibited by the license agreement under which this code is
31** provided to the user or company in possession of this copy."
32**
33*************************************************************************/
34#include "TsoCheckerCmd.h"
35#include <sstream>
36
37using namespace std;
38using namespace Tso;
39////////////////////////////////////////////////
40
41TsoCheckerCmd::TsoCheckerCmd()
42{
43
44}
45
46////////////////////////////////////////////////
47
48TsoCheckerCmd::TsoCheckerCmd( const TsoCheckerCmd & orig )
49{
50 iseq_ = orig.iseq_;
51 macc_ = orig.macc_;
52 gobs_ = orig.gobs_;
53 addr_ = orig.addr_;
54 tid_ = orig.tid_;
55 itype_ = orig.itype_;
56 cmd_ = orig.cmd_;
57 dsrc_ = orig.dsrc_;
58 sizeV_ = orig.sizeV_;
59 time_ = orig.time_;
60}
61
62////////////////////////////////////////////////
63
64TsoCheckerCmd::~TsoCheckerCmd()
65{
66
67}
68
69////////////////////////////////////////////////
70
71const TsoCheckerCmd &
72TsoCheckerCmd::operator=( const TsoCheckerCmd & rhs )
73{
74 return *this;
75}
76
77////////////////////////////////////////////////
78
79bool
80TsoCheckerCmd::operator==( const TsoCheckerCmd & rhs ) const
81{
82 return false;
83}
84
85////////////////////////////////////////////////
86
87string
88TsoCheckerCmd::toString() const
89{
90 ostringstream os;
91
92 os << "TsoCmd (";
93 os << "tid=" << tid_;
94 os << " iseq=" << iseq_;
95 os << " i=" << mmitype[itype_];
96 os << " e=" << mmcmd[cmd_];
97 os << " a=0x" << hex << addr_;
98 os << " d=0x" << hex << data_;
99 os << " vb=0x" << hex << (int) sizeV_;
100 os << " dsrc=" << mmdsrc[dsrc_];
101 os << " ma=" << dec << macc_;
102 os << " gl=" << dec << gobs_;
103 os << " t=" << dec << time_;
104 os << ")" << endl;
105 return os.str();
106}
107