ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
Loading...
Searching...
No Matches
InterruptEnable.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2//
3// This file is part of ETISS. It is licensed under the BSD 3-Clause License; you may not use this file except in
4// compliance with the License. You should have received a copy of the license along with this project. If not, see the
5// LICENSE file.
6
7#ifndef ETISS_INCLUDE_INTERRUPTENABLE_H_
8#define ETISS_INCLUDE_INTERRUPTENABLE_H_
9
10namespace etiss
11{
12
14{
15 public:
16 virtual ~InterruptEnable() {}
17 virtual bool isEnabled() { return true; }
18};
19
20template <typename t>
22{
23 public:
24 MappedInterruptEnable(t *enable_reg, t mask) : enable_reg_(enable_reg), mask_(mask) {}
25
27
28 bool isEnabled() override { return *enable_reg_ & mask_; };
29
30 private:
33};
34
35} // namespace etiss
36#endif
MappedInterruptEnable(t *enable_reg, t mask)
forwards: include/jit/*
Definition Benchmark.h:17