aboutsummaryrefslogtreecommitdiff
path: root/riscv/extension.cc
blob: b758eef61cedd08ad218da8dbc4579a51c8c333f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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->set_interrupt(IRQ_COP, true);
  p->take_interrupt();
}

void extension_t::clear_interrupt()
{
  p->set_interrupt(IRQ_COP, false);
}