ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
Loading...
Searching...
No Matches
InterruptVector.cpp
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.
15#include <iostream>
16
17using namespace etiss;
18
20
22{
23 for (unsigned i = 0; i < width(); i++)
24 {
25 if (getBit(i))
26 return true;
27 }
28 return false;
29}
31{
32 for (unsigned i = 0; i < width(); i++)
33 {
34 setBit(i, false);
35 }
36}
defines a general interface to set interrupt bits
virtual void clear()
sets every bit to false
virtual unsigned width() const =0
number of interrupt bits
virtual bool isActive() const
virtual bool getBit(unsigned bit) const =0
get the bit of an interrupt line
virtual void setBit(unsigned bit, bool state)=0
set the bit of an interrupt line to state (true = raised)
forwards: include/jit/*
Definition Benchmark.h:17