aboutsummaryrefslogtreecommitdiff
path: root/riscv/abstract_interrupt_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/abstract_interrupt_controller.h')
-rw-r--r--riscv/abstract_interrupt_controller.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/riscv/abstract_interrupt_controller.h b/riscv/abstract_interrupt_controller.h
new file mode 100644
index 0000000..946b079
--- /dev/null
+++ b/riscv/abstract_interrupt_controller.h
@@ -0,0 +1,14 @@
+#ifndef _RISCV_ABSTRACT_INTERRUPT_CONTROLLER_H
+#define _RISCV_ABSTRACT_INTERRUPT_CONTROLLER_H
+
+#include "decode.h"
+#include <cstdint>
+#include <cstddef>
+
+class abstract_interrupt_controller_t {
+ public:
+ virtual void set_interrupt_level(uint32_t interrupt_id, int level) = 0;
+ virtual ~abstract_interrupt_controller_t() {}
+};
+
+#endif