gem5 v24.0.0.0
Loading...
Searching...
No Matches
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
45namespace gem5
46{
47
48namespace ArmISAInst {
49
51{
52 protected:
53 MicroTmeOp(const char *mnem, ArmISA::ExtMachInst machInst,
54 OpClass __opClass)
55 : ArmISA::MicroOp(mnem, machInst, __opClass)
56 {}
57};
58
60{
61 protected:
62 MicroTmeBasic64(const char *mnem, ArmISA::ExtMachInst machInst,
63 OpClass __opClass) :
64 MicroTmeOp(mnem, machInst, __opClass)
65 {}
66
67 std::string generateDisassembly(Addr pc,
68 const loader::SymbolTable *symtab) const;
69};
70
72{
73 protected:
74 uint64_t imm;
75
76 TmeImmOp64(const char *mnem, ArmISA::ExtMachInst machInst,
77 OpClass __opClass, uint64_t _imm)
78 : ArmISA::ArmStaticInst(mnem, machInst, __opClass),
79 imm(_imm)
80 {}
81
82 std::string generateDisassembly(Addr pc,
83 const loader::SymbolTable *symtab) const;
84};
85
87{
88 protected:
90
91 TmeRegNone64(const char *mnem, ArmISA::ExtMachInst machInst,
92 OpClass __opClass, RegIndex _dest)
93 : ArmISA::ArmStaticInst(mnem, machInst, __opClass),
94 dest(_dest)
95 {}
96
97 std::string generateDisassembly(Addr pc,
98 const loader::SymbolTable *symtab) const;
99};
100
101class Tstart64 : public TmeRegNone64
102{
103 private:
105
106 public:
107 Tstart64(ArmISA::ExtMachInst, RegIndex);
108
112};
113
114class Ttest64 : public TmeRegNone64
115{
116 private:
118
119 public:
120 Ttest64(ArmISA::ExtMachInst, RegIndex);
121
123};
124
125class Tcancel64 : public TmeImmOp64
126{
127 public:
128 Tcancel64(ArmISA::ExtMachInst, uint64_t);
129
133};
134
136{
137 public:
138 MicroTfence64(ArmISA::ExtMachInst);
139
143};
144
146{
147 public:
148 MicroTcommit64(ArmISA::ExtMachInst);
149
153};
154
155
157{
158 protected:
159 MacroTmeOp(const char *mnem, ArmISA::ExtMachInst _machInst,
160 OpClass __opClass);
161};
162
163class Tcommit64 : public MacroTmeOp
164{
165 public:
166 Tcommit64(ArmISA::ExtMachInst _machInst);
167};
168
169} // namespace ArmISAInst
170} // namespace gem5
171
172#endif
MacroTmeOp(const char *mnem, ArmISA::ExtMachInst _machInst, OpClass __opClass)
Definition tme64.cc:181
Fault execute(ExecContext *, trace::InstRecord *) const
Definition tme64.cc:204
Fault initiateAcc(ExecContext *, trace::InstRecord *) const
Fault completeAcc(PacketPtr, ExecContext *, trace::InstRecord *) const
MicroTcommit64(ArmISA::ExtMachInst)
Definition tme64.cc:192
Fault execute(ExecContext *, trace::InstRecord *) const
Definition tme64.cc:91
MicroTfence64(ArmISA::ExtMachInst)
Definition tme64.cc:80
Fault completeAcc(PacketPtr, ExecContext *, trace::InstRecord *) const
Definition tme64.cc:107
Fault initiateAcc(ExecContext *, trace::InstRecord *) const
Definition tme64.cc:98
MicroTmeBasic64(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass)
Definition tme64.hh:62
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const
Internal function to generate disassembly string.
Definition tme64.cc:72
MicroTmeOp(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass)
Definition tme64.hh:53
Fault completeAcc(PacketPtr, ExecContext *, trace::InstRecord *) const
Fault execute(ExecContext *, trace::InstRecord *) const
Definition tme64.cc:173
Fault initiateAcc(ExecContext *, trace::InstRecord *) const
Tcancel64(ArmISA::ExtMachInst, uint64_t)
Definition tme64.cc:161
Tcommit64(ArmISA::ExtMachInst _machInst)
Definition tme64.cc:211
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const
Internal function to generate disassembly string.
Definition tme64.cc:52
TmeImmOp64(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass, uint64_t _imm)
Definition tme64.hh:76
TmeRegNone64(const char *mnem, ArmISA::ExtMachInst machInst, OpClass __opClass, RegIndex _dest)
Definition tme64.hh:91
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const
Internal function to generate disassembly string.
Definition tme64.cc:62
Fault execute(ExecContext *, trace::InstRecord *) const
Definition tme64.cc:136
Fault initiateAcc(ExecContext *, trace::InstRecord *) const
Tstart64(ArmISA::ExtMachInst, RegIndex)
Definition tme64.cc:115
Fault completeAcc(PacketPtr, ExecContext *, trace::InstRecord *) const
Ttest64(ArmISA::ExtMachInst, RegIndex)
Definition tme64.cc:144
Fault execute(ExecContext *, trace::InstRecord *) const
Base class for Memory microops.
Definition macromem.hh:71
Base class for predicated macro-operations.
Definition pred_inst.hh:343
The ExecContext is an abstract base class the provides the interface used by the ISA to manipulate th...
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Definition packet.hh:295
Register ID: describe an architectural register with its class and index.
Definition reg_class.hh:94
Bitfield< 4 > pc
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition binary32.hh:36
uint16_t RegIndex
Definition types.hh:176
std::shared_ptr< FaultBase > Fault
Definition types.hh:249
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition types.hh:147

Generated on Tue Jun 18 2024 16:23:56 for gem5 by doxygen 1.11.0