30#ifndef __ARCH_SPARC_INSTS_PRIV_HH__
31#define __ARCH_SPARC_INSTS_PRIV_HH__
56 OpClass __opClass,
char const * _regName) :
91 Priv(mnem, _machInst, __opClass),
imm(
bits(_machInst, 12, 0))
104 OpClass __opClass,
char const *_regName) :
Base class for privelege mode operations with immediates.
PrivImm(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
PrivReg(const char *mnem, ExtMachInst _machInst, OpClass __opClass, char const *_regName)
Base class for privelege mode operations.
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
Base class for all SPARC static instructions.
SparcStaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
WrPrivImm(const char *mnem, ExtMachInst _machInst, OpClass __opClass, char const *_regName)
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
std::string generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
constexpr T bits(T val, unsigned first, unsigned last)
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.