blob: a34dd8040ced3a7f97f4e3f8deac64f9529f982e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// See LICENSE for license details.
#include "extension.h"
#include "trap.h"
extension_t::~extension_t()
{
}
void extension_t::illegal_instruction()
{
throw trap_illegal_instruction();
}
void extension_t::raise_interrupt()
{
p->take_interrupt((reg_t)1 << IRQ_COP); // must not return
throw std::logic_error("a COP exception was posted, but interrupts are disabled!");
}
void extension_t::clear_interrupt()
{
}
|