38#ifndef __DEV_RISCV_CLINT_HH__
39#define __DEV_RISCV_CLINT_HH__
48#include "params/Clint.hh"
126 uint64_t mtimecmp_reset_value) :
153 void init()
override;
BasicPioDevice(const Params &p, Addr size)
std::vector< Register64 > mtimecmp
ClintRegisters(const std::string &name, Addr base, Clint *clint, uint64_t mtimecmp_reset_value)
uint64_t mtimecmpResetValue
std::vector< RegisterRaz > reserved
std::vector< Register32 > msip
void updateMSIP(const int thread_id)
Software Interrupt.
void raiseInterruptPin(int id)
Timer tick callback.
Clint(const Params ¶ms)
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
void init() override
SimObject functions.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
SignalSinkPort< bool > reset
ClintRegisters::Register32 Register32
IntSinkPin< Clint > signal
void lowerInterruptPin(int id)
void writeMSIP(Register32 ®, const uint32_t &data, const int thread_id)
gem5::Clint::ClintRegisters registers
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Tick read(PacketPtr pkt) override
PioDevice interface functions.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Ports are used to interface objects to each other.
const std::string & name() const
Register< uint64_t > Register64
Register< uint32_t > Register32
const Params & params() const
Copyright (c) 2024 Arm Limited All rights reserved.
const PortID InvalidPortID
std::ostream CheckpointOut
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
uint64_t Tick
Tick count type.
RegisterBank< ByteOrder::little > RegisterBankLE
IntSinkPinBase IntSinkPin
Declaration of the Packet class.