gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tme64.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-2021 ARM Limited
3  * All rights reserved
4  *
5  * The license below extends only to copyright in the software and shall
6  * not be construed as granting a license to any other intellectual
7  * property including but not limited to intellectual property relating
8  * to a hardware implementation of the functionality of the software
9  * licensed hereunder. You may use the software subject to the license
10  * terms below provided that you ensure that this notice is replicated
11  * unmodified and in its entirety in all distributions of the software,
12  * modified or unmodified, in source code or in binary form.
13  *
14  * Redistribution and use in source and binary forms, with or without
15  * modification, are permitted provided that the following conditions are
16  * met: redistributions of source code must retain the above copyright
17  * notice, this list of conditions and the following disclaimer;
18  * redistributions in binary form must reproduce the above copyright
19  * notice, this list of conditions and the following disclaimer in the
20  * documentation and/or other materials provided with the distribution;
21  * neither the name of the copyright holders nor the names of its
22  * contributors may be used to endorse or promote products derived from
23  * this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  */
37 
38 #ifndef __ARCH_ARM_INSTS_TME64_HH__
39 #define __ARCH_ARM_INSTS_TME64_HH__
40 
44 
45 namespace ArmISAInst {
46 
48 {
49  protected:
51  OpClass __opClass)
52  : ArmISA::MicroOp(mnem, machInst, __opClass)
53  {}
54 };
55 
57 {
58  protected:
60  OpClass __opClass) :
61  MicroTmeOp(mnem, machInst, __opClass)
62  {}
63 
64  std::string generateDisassembly(Addr pc,
65  const Loader::SymbolTable *symtab) const;
66 };
67 
69 {
70  protected:
71  uint64_t imm;
72 
74  OpClass __opClass, uint64_t _imm)
75  : ArmISA::ArmStaticInst(mnem, machInst, __opClass),
76  imm(_imm)
77  {}
78 
79  std::string generateDisassembly(Addr pc,
80  const Loader::SymbolTable *symtab) const;
81 };
82 
84 {
85  protected:
87 
89  OpClass __opClass, ArmISA::IntRegIndex _dest)
90  : ArmISA::ArmStaticInst(mnem, machInst, __opClass),
91  dest(_dest)
92  {}
93 
94  std::string generateDisassembly(Addr pc,
95  const Loader::SymbolTable *symtab) const;
96 };
97 
98 class Tstart64 : public TmeRegNone64
99 {
100  private:
102 
103  public:
105 
109 };
110 
111 class Ttest64 : public TmeRegNone64
112 {
113  private:
115 
116  public:
118 
120 };
121 
122 class Tcancel64 : public TmeImmOp64
123 {
124  public:
125  Tcancel64(ArmISA::ExtMachInst, uint64_t);
126 
130 };
131 
133 {
134  public:
136 
140 };
141 
143 {
144  public:
146 
150 };
151 
152 
154 {
155  protected:
156  MacroTmeOp(const char *mnem, ArmISA::ExtMachInst _machInst,
157  OpClass __opClass);
158 };
159 
160 class Tcommit64 : public MacroTmeOp
161 {
162  public:
163  Tcommit64(ArmISA::ExtMachInst _machInst);
164 };
165 
166 } // namespace
167 
168 #endif
ArmISAInst::Tcancel64
Definition: tme64.hh:122
ArmISAInst::TmeImmOp64
Definition: tme64.hh:68
ArmISA::MicroOp
Base class for Memory microops.
Definition: macromem.hh:65
ArmISAInst::Ttest64::execute
Fault execute(ExecContext *, Trace::InstRecord *) const
Definition: tme64classic.cc:64
ArmISAInst::TmeImmOp64::TmeImmOp64
TmeImmOp64(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass, uint64_t _imm)
Definition: tme64.hh:73
ArmISAInst::MicroTfence64::MicroTfence64
MicroTfence64(ArmISA::ExtMachInst)
Definition: tme64.cc:76
ArmISAInst::TmeRegNone64::TmeRegNone64
TmeRegNone64(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass, ArmISA::IntRegIndex _dest)
Definition: tme64.hh:88
ArmISAInst::Tcancel64::Tcancel64
Tcancel64(ArmISA::ExtMachInst, uint64_t)
Definition: tme64.cc:172
ArmISAInst::MicroTcommit64::MicroTcommit64
MicroTcommit64(ArmISA::ExtMachInst)
Definition: tme64.cc:213
ArmISAInst::MicroTfence64
Definition: tme64.hh:132
ArmISAInst::Tstart64
Definition: tme64.hh:98
Loader::SymbolTable
Definition: symtab.hh:58
ArmISA::IntRegIndex
IntRegIndex
Definition: intregs.hh:51
ArmISAInst::Tcommit64
Definition: tme64.hh:160
ArmISAInst::MicroTmeBasic64::MicroTmeBasic64
MicroTmeBasic64(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass)
Definition: tme64.hh:59
Trace::InstRecord
Definition: insttracer.hh:55
ArmISAInst::MicroTfence64::completeAcc
Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const
Definition: tme64.cc:108
ArmISAInst::Tstart64::initiateAcc
Fault initiateAcc(ExecContext *, Trace::InstRecord *) const
Definition: tme64classic.cc:46
ArmISAInst::Tcommit64::Tcommit64
Tcommit64(ArmISA::ExtMachInst _machInst)
Definition: tme64.cc:237
StaticInst::machInst
const TheISA::ExtMachInst machInst
The binary machine instruction.
Definition: static_inst.hh:259
ArmISAInst::Ttest64
Definition: tme64.hh:111
ArmISAInst::Tstart64::completeAcc
Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const
Definition: tme64classic.cc:55
ArmISA
Definition: ccregs.hh:41
macromem.hh
ArmISAInst::MicroTcommit64::initiateAcc
Fault initiateAcc(ExecContext *, Trace::InstRecord *) const
Definition: tme64classic.cc:91
RegId
Register ID: describe an architectural register with its class and index.
Definition: reg_class.hh:75
ArmISAInst::MicroTfence64::initiateAcc
Fault initiateAcc(ExecContext *, Trace::InstRecord *) const
Definition: tme64.cc:99
ArmISA::ArmStaticInst
Definition: static_inst.hh:60
ArmISAInst::Tstart64::destRegIdxArr
RegId destRegIdxArr[1]
Definition: tme64.hh:101
ArmISAInst::MicroTcommit64
Definition: tme64.hh:142
ArmISAInst::MicroTmeBasic64
Definition: tme64.hh:56
ArmISAInst::Tstart64::Tstart64
Tstart64(ArmISA::ExtMachInst, ArmISA::IntRegIndex)
Definition: tme64.cc:116
ArmISAInst::MicroTcommit64::completeAcc
Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const
Definition: tme64classic.cc:100
ArmISAInst::MicroTmeBasic64::generateDisassembly
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const
Internal function to generate disassembly string.
Definition: tme64.cc:68
ArmISAInst::TmeRegNone64::dest
ArmISA::IntRegIndex dest
Definition: tme64.hh:86
Fault
std::shared_ptr< FaultBase > Fault
Definition: types.hh:246
MipsISA::pc
Bitfield< 4 > pc
Definition: pra_constants.hh:240
ArmISAInst::TmeRegNone64
Definition: tme64.hh:83
ArmISAInst
Definition: tme64.cc:45
ArmISAInst::MicroTfence64::execute
Fault execute(ExecContext *, Trace::InstRecord *) const
Definition: tme64.cc:92
ExecContext
The ExecContext is an abstract base class the provides the interface used by the ISA to manipulate th...
Definition: exec_context.hh:70
ArmISA::PredMacroOp
Base class for predicated macro-operations.
Definition: pred_inst.hh:336
ArmISAInst::Tcancel64::completeAcc
Fault completeAcc(PacketPtr, ExecContext *, Trace::InstRecord *) const
Definition: tme64classic.cc:82
ArmISAInst::TmeImmOp64::imm
uint64_t imm
Definition: tme64.hh:71
ArmISAInst::MicroTmeOp
Definition: tme64.hh:47
Addr
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition: types.hh:148
pred_inst.hh
ArmISAInst::MacroTmeOp
Definition: tme64.hh:153
ArmISAInst::Ttest64::destRegIdxArr
RegId destRegIdxArr[1]
Definition: tme64.hh:114
ArmISAInst::MacroTmeOp::MacroTmeOp
MacroTmeOp(const char *mnem, ArmISA::ExtMachInst _machInst, OpClass __opClass)
Definition: tme64.cc:197
ArmISAInst::TmeRegNone64::generateDisassembly
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const
Internal function to generate disassembly string.
Definition: tme64.cc:58
ArmISAInst::TmeImmOp64::generateDisassembly
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const
Internal function to generate disassembly string.
Definition: tme64.cc:48
Packet
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Definition: packet.hh:258
static_inst.hh
ArmISAInst::Tcancel64::initiateAcc
Fault initiateAcc(ExecContext *, Trace::InstRecord *) const
Definition: tme64classic.cc:73
ArmISA::MicroOp::MicroOp
MicroOp(const char *mnem, ExtMachInst machInst, OpClass __opClass)
Definition: macromem.hh:68
ArmISAInst::Tstart64::execute
Fault execute(ExecContext *, Trace::InstRecord *) const
Definition: tme64.cc:142
ArmISAInst::MicroTcommit64::execute
Fault execute(ExecContext *, Trace::InstRecord *) const
Definition: tme64.cc:230
ArmISA::ArmStaticInst::ArmStaticInst
ArmStaticInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
Definition: static_inst.hh:147
ArmISAInst::Tcancel64::execute
Fault execute(ExecContext *, Trace::InstRecord *) const
Definition: tme64.cc:189
ArmISAInst::MicroTmeOp::MicroTmeOp
MicroTmeOp(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass)
Definition: tme64.hh:50
ArmISAInst::Ttest64::Ttest64
Ttest64(ArmISA::ExtMachInst, ArmISA::IntRegIndex)
Definition: tme64.cc:150
MipsISA::ExtMachInst
uint64_t ExtMachInst
Definition: types.hh:39

Generated on Tue Jun 22 2021 15:28:21 for gem5 by doxygen 1.8.17