aboutsummaryrefslogtreecommitdiff
path: root/riscv/abstract_device.h
blob: 559c64f6d64720311342730f34a6cdd6fe873b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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