mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add a writeMemory function to IpCore class
This commit is contained in:
parent
dd1a17c4a5
commit
02f60eb86e
1 changed files with 4 additions and 0 deletions
|
@ -199,6 +199,10 @@ protected:
|
|||
template<typename T>
|
||||
T readMemory(const std::string& block, uintptr_t address) const
|
||||
{ return *(reinterpret_cast<T*>(getLocalAddr(block, address))); }
|
||||
|
||||
template<typename T>
|
||||
void writeMemory(const std::string& block, uintptr_t address, T value)
|
||||
{ T* ptr = reinterpret_cast<T*>(getLocalAddr(block, address)); *ptr = value; }
|
||||
|
||||
protected:
|
||||
struct IrqPort {
|
||||
|
|
Loading…
Add table
Reference in a new issue