gem5 v24.1.0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
gem5::Clint::ClintRegisters Class Reference

MMIO Registers 0x0000 - 0x3FFF: msip (write-through to misc reg file) ...: reserved[0] 0x4000 - 0xBFF7: mtimecmp ...: reserved[1] 0xBFF8: mtime (read-only) More...

#include <clint.hh>

Inheritance diagram for gem5::Clint::ClintRegisters:
gem5::RegisterBank< ByteOrder::little > gem5::RegisterBankBase

Public Member Functions

 ClintRegisters (const std::string &name, Addr base, Clint *clint, uint64_t mtimecmp_reset_value)
 
void init ()
 
- Public Member Functions inherited from gem5::RegisterBank< ByteOrder::little >
void setDebugFlag (const ::gem5::debug::SimpleFlag &flag)
 
constexpr RegisterBank (const std::string &new_name, Addr new_base)
 
virtual ~RegisterBank ()
 
void addRegisters (std::initializer_list< RegisterAdder > adders)
 
void addRegistersAt (std::initializer_list< RegisterAdder > adders)
 
void addRegister (RegisterAdder reg)
 
Addr base () const
 
Addr size () const
 
const std::string & name () const
 
virtual void read (Addr addr, void *buf, Addr bytes)
 
virtual void write (Addr addr, const void *buf, Addr bytes)
 
virtual void reset ()
 

Public Attributes

const Addr mtimecmpStart = 0x4000
 
const Addr mtimeStart = 0xBFF8
 
const Addr maxBankSize = 0xC000
 
std::vector< Register32msip
 
std::vector< Register64mtimecmp
 
Register64 mtime = {"mtime", 0}
 
std::vector< RegisterRaz > reserved
 
Clintclint
 
uint64_t mtimecmpResetValue
 

Additional Inherited Members

- Public Types inherited from gem5::RegisterBank< ByteOrder::little >
using Register8 = Register< uint8_t >
 
using Register8LE = Register< uint8_t, ByteOrder::little >
 
using Register8BE = Register< uint8_t, ByteOrder::big >
 
using Register16 = Register< uint16_t >
 
using Register16LE = Register< uint16_t, ByteOrder::little >
 
using Register16BE = Register< uint16_t, ByteOrder::big >
 
using Register32 = Register< uint32_t >
 
using Register32LE = Register< uint32_t, ByteOrder::little >
 
using Register32BE = Register< uint32_t, ByteOrder::big >
 
using Register64 = Register< uint64_t >
 
using Register64LE = Register< uint64_t, ByteOrder::little >
 
using Register64BE = Register< uint64_t, ByteOrder::big >
 
- Static Public Member Functions inherited from gem5::RegisterBank< ByteOrder::little >
static constexpr Data readWithMask (const Data &value, const Data &bitmask)
 
static constexpr Data writeWithMask (const Data &old, const Data &value, const Data &bitmask)
 

Detailed Description

MMIO Registers 0x0000 - 0x3FFF: msip (write-through to misc reg file) ...: reserved[0] 0x4000 - 0xBFF7: mtimecmp ...: reserved[1] 0xBFF8: mtime (read-only)

Definition at line 112 of file clint.hh.

Constructor & Destructor Documentation

◆ ClintRegisters()

gem5::Clint::ClintRegisters::ClintRegisters ( const std::string &  name,
Addr  base,
Clint clint,
uint64_t  mtimecmp_reset_value 
)
inline

Definition at line 124 of file clint.hh.

Member Function Documentation

◆ init()

void gem5::Clint::ClintRegisters::init ( )

Member Data Documentation

◆ clint

Clint* gem5::Clint::ClintRegisters::clint

Definition at line 130 of file clint.hh.

Referenced by init().

◆ maxBankSize

const Addr gem5::Clint::ClintRegisters::maxBankSize = 0xC000

Definition at line 117 of file clint.hh.

Referenced by init().

◆ msip

std::vector<Register32> gem5::Clint::ClintRegisters::msip

◆ mtime

Register64 gem5::Clint::ClintRegisters::mtime = {"mtime", 0}

◆ mtimecmp

std::vector<Register64> gem5::Clint::ClintRegisters::mtimecmp

◆ mtimecmpResetValue

uint64_t gem5::Clint::ClintRegisters::mtimecmpResetValue

Definition at line 131 of file clint.hh.

Referenced by init().

◆ mtimecmpStart

const Addr gem5::Clint::ClintRegisters::mtimecmpStart = 0x4000

Definition at line 115 of file clint.hh.

Referenced by init().

◆ mtimeStart

const Addr gem5::Clint::ClintRegisters::mtimeStart = 0xBFF8

Definition at line 116 of file clint.hh.

Referenced by init().

◆ reserved

std::vector<RegisterRaz> gem5::Clint::ClintRegisters::reserved

Definition at line 122 of file clint.hh.

Referenced by init().


The documentation for this class was generated from the following files:

Generated on Mon Jan 13 2025 04:28:50 for gem5 by doxygen 1.9.8