Go to the documentation of this file.
38 #ifndef __DEV_ARM_NOMALI_GPU_HH__
39 #define __DEV_ARM_NOMALI_GPU_HH__
44 #include "libnomali/nomali.h"
46 class NoMaliGpuParams;
47 class CustomNoMaliGpuParams;
102 static void gpuPanic(nomali_error_t
err,
const char *msg) M5_ATTR_NORETURN;
110 if (
err != NOMALI_E_OK)
128 virtual void onInterrupt(nomali_int_t intno,
bool set);
142 void setCallback(
const nomali_callback_t &callback);
156 nomali_int_t intno,
int set);
167 static void _reset(nomali_handle_t h,
void *
usr);
199 std::map<nomali_addr_t, uint32_t>
idRegs;
202 #endif // __DEV_ARM_NOMALI_GPU_HH__
nomali_info_t nomaliInfo
Cached information struct from the NoMali library.
void writeRegRaw(nomali_addr_t reg, uint32_t value)
Wrapper around nomali_reg_write_raw().
virtual void onInterrupt(nomali_int_t intno, bool set)
Interrupt callback from the NoMali library.
static void panicOnErr(nomali_error_t err, const char *msg)
Panic if the NoMali returned an error, do nothing otherwise.
virtual void onReset()
Reset callback from the NoMali library.
uint64_t Tick
Tick count type.
const std::map< nomali_int_t, uint32_t > interruptMap
Map between NoMali interrupt types and actual GIC interrupts.
AddrRangeList getAddrRanges() const override
Every PIO device is obliged to provide an implementation that returns the address ranges the device r...
void onReset() override
Reset callback from the NoMali library.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
void setCallback(const nomali_callback_t &callback)
Wrapper around nomali_set_callback()
void reset()
Wrapper around nomali_reset().
CustomNoMaliGpu(const CustomNoMaliGpuParams *p)
virtual ~CustomNoMaliGpu()
This device is the base class which all devices senstive to an address range inherit from.
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
uint32_t readReg(nomali_addr_t reg)
Wrapper around nomali_reg_read().
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void writeReg(nomali_addr_t reg, uint32_t value)
Wrapper around nomali_reg_write().
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
static void _reset(nomali_handle_t h, void *usr)
Reset callback from the NoMali library.
std::map< nomali_addr_t, uint32_t > idRegs
Map between GPU registers and their custom reset values.
RealView *const platform
Platform, used to discover GIC.
nomali_handle_t nomali
Handle of a NoMali library instance.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
static void gpuPanic(nomali_error_t err, const char *msg) M5_ATTR_NORETURN
Format a NoMali error into an error message and panic.
NoMaliGpu(const NoMaliGpuParams *p)
const Addr pioAddr
Device base address.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
uint32_t readRegRaw(nomali_addr_t reg) const
Wrapper around nomali_reg_read_raw().
std::ostream CheckpointOut
bool intState(nomali_int_t intno)
Wrapper around nomali_int_state()
void serialize(CheckpointOut &cp) const override
Serialize an object.
static void _interrupt(nomali_handle_t h, void *usr, nomali_int_t intno, int set)
Interrupt callback from the NoMali library.
Generated on Wed Sep 30 2020 14:02:10 for gem5 by doxygen 1.8.17