29#ifndef __ARCH_SPARC_DECODER_HH__
30#define __ARCH_SPARC_DECODER_HH__
36#include "debug/Decode.hh"
37#include "params/SparcDecoder.hh"
68 if (
emi & (1 << 13)) {
98 DPRINTF(Decode,
"Decode: Decoded %s instruction: %#x\n",
99 si->getName(), mach_inst);
Addr instAddr() const
Returns the memory address of the instruction this PC points to.
static GenericISA::BasicDecodeCache< Decoder, ExtMachInst > defaultCache
A cache of decoded instruction objects.
void setContext(RegVal _asi)
void moreBytes(const PCStateBase &pc, Addr fetchPC) override
Feed data to the decoder.
StaticInstPtr decode(PCStateBase &next_pc) override
Decode an instruction or fetch it from the code cache.
StaticInstPtr decodeInst(ExtMachInst mach_inst)
Decoder(const SparcDecoderParams &p)
StaticInstPtr decode(ExtMachInst mach_inst, Addr addr)
Decode a machine instruction.
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.