gem5
v25.0.0.1
Loading...
Searching...
No Matches
arch
riscv
insts
zcmt.hh
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Google LLC
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are
7
* met: redistributions of source code must retain the above copyright
8
* notice, this list of conditions and the following disclaimer;
9
* redistributions in binary form must reproduce the above copyright
10
* notice, this list of conditions and the following disclaimer in the
11
* documentation and/or other materials provided with the distribution;
12
* neither the name of the copyright holders nor the names of its
13
* contributors may be used to endorse or promote products derived from
14
* this software without specific prior written permission.
15
*
16
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
*/
28
29
#ifndef __ARCH_RISCV_INSTS_ZCMT_HH__
30
#define __ARCH_RISCV_INSTS_ZCMT_HH__
31
32
#include <string>
33
34
#include "
arch/riscv/insts/static_inst.hh
"
35
#include "
cpu/static_inst.hh
"
36
37
namespace
gem5
38
{
39
40
namespace
RiscvISA
41
{
42
43
class
ZcmtSecondFetchInst
:
public
RiscvStaticInst
44
{
45
private
:
46
RegId
srcRegIdxArr
[0];
47
RegId
destRegIdxArr
[0];
48
Addr
jvtEntry
;
49
50
public
:
52
ZcmtSecondFetchInst
(
ExtMachInst
machInst
,
Addr
entry);
53
Fault
execute
(
ExecContext
*,
trace::InstRecord
*)
const override
;
54
55
std::string
56
generateDisassembly
(
57
Addr
pc
,
const
loader::SymbolTable
*symtab)
const override
;
58
59
std::unique_ptr<PCStateBase>
branchTarget
(
60
const
PCStateBase
&branch_pc)
const override
;
61
62
using
StaticInst::branchTarget
;
63
};
64
65
}
// namespace RiscvISA
66
}
// namespace gem5
67
68
#endif
// __ARCH_RISCV_INSTS_ZCMT_HH__
static_inst.hh
gem5::ExecContext
The ExecContext is an abstract base class the provides the interface used by the ISA to manipulate th...
Definition
exec_context.hh:72
gem5::PCStateBase
Definition
pcstate.hh:59
gem5::RegId
Register ID: describe an architectural register with its class and index.
Definition
reg_class.hh:94
gem5::RiscvISA::RiscvStaticInst::RiscvStaticInst
RiscvStaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
Definition
static_inst.hh:55
gem5::RiscvISA::RiscvStaticInst::machInst
ExtMachInst machInst
Definition
static_inst.hh:73
gem5::RiscvISA::ZcmtSecondFetchInst::destRegIdxArr
RegId destRegIdxArr[0]
Definition
zcmt.hh:47
gem5::RiscvISA::ZcmtSecondFetchInst::jvtEntry
Addr jvtEntry
Definition
zcmt.hh:48
gem5::RiscvISA::ZcmtSecondFetchInst::generateDisassembly
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
Definition
zcmt.cc:71
gem5::RiscvISA::ZcmtSecondFetchInst::branchTarget
std::unique_ptr< PCStateBase > branchTarget(const PCStateBase &branch_pc) const override
Return the target address for a PC-relative branch.
Definition
zcmt.cc:81
gem5::RiscvISA::ZcmtSecondFetchInst::execute
Fault execute(ExecContext *, trace::InstRecord *) const override
Definition
zcmt.cc:58
gem5::RiscvISA::ZcmtSecondFetchInst::ZcmtSecondFetchInst
ZcmtSecondFetchInst(ExtMachInst machInst, Addr entry)
Constructor.
Definition
zcmt.cc:43
gem5::RiscvISA::ZcmtSecondFetchInst::srcRegIdxArr
RegId srcRegIdxArr[0]
Definition
zcmt.hh:46
gem5::StaticInst::branchTarget
virtual std::unique_ptr< PCStateBase > branchTarget(const PCStateBase &pc) const
Return the target address for a PC-relative branch.
Definition
static_inst.cc:46
gem5::loader::SymbolTable
Definition
symtab.hh:152
gem5::trace::InstRecord
Definition
insttracer.hh:62
static_inst.hh
gem5::RiscvISA
Definition
fs_workload.cc:41
gem5::RiscvISA::pc
Bitfield< 4 > pc
Definition
pra_constants.hh:243
gem5
Copyright (c) 2024 Arm Limited All rights reserved.
Definition
binary32.hh:36
gem5::Fault
std::shared_ptr< FaultBase > Fault
Definition
types.hh:249
gem5::Addr
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition
types.hh:147
gem5::X86ISA::ExtMachInst
Definition
types.hh:213
Generated on Sat Oct 18 2025 08:06:41 for gem5 by
doxygen
1.14.0