1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Merge branch 'master' of git.rwth-aachen.de:acs/public/villas/VILLASfpga

This commit is contained in:
Hatim Kanchwala 2020-06-02 00:54:54 +02:00
commit 4005a0b40e

View file

@ -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 {