6 changed files with 22 additions and 11 deletions
@ -0,0 +1,15 @@ |
|||
#ifndef _RISCV_ABSTRACT_DEVICE_H |
|||
#define _RISCV_ABSTRACT_DEVICE_H |
|||
|
|||
#include "decode.h" |
|||
#include <cstdint> |
|||
#include <cstddef> |
|||
|
|||
class abstract_device_t { |
|||
public: |
|||
virtual bool load(reg_t addr, size_t len, uint8_t* bytes) = 0; |
|||
virtual bool store(reg_t addr, size_t len, const uint8_t* bytes) = 0; |
|||
virtual ~abstract_device_t() {} |
|||
}; |
|||
|
|||
#endif |
|||
Loading…
Reference in new issue