ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
InterruptVector.cpp
Go to the documentation of this file.
1
53#include <iostream>
54
55using namespace etiss;
56
58
60{
61 for (unsigned i = 0; i < width(); i++)
62 {
63 if (getBit(i))
64 return true;
65 }
66 return false;
67}
69{
70 for (unsigned i = 0; i < width(); i++)
71 {
72 setBit(i, false);
73 }
74}
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)
Page Table Entry (PTE) defines the composition of Page Frame Number (PFN) and relavant flags.
Definition Benchmark.h:53