mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 13:27:29 -04:00
It makes more sense if interrupts default to enabled.
This commit is contained in:
parent
8474581c5a
commit
65b9f2afb7
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,7 @@ bool Core::running() const {
|
|||
}
|
||||
|
||||
Warp::Warp(Core *c, Word id) :
|
||||
core(c), pc(0), interruptEnable(false),
|
||||
core(c), pc(0), interruptEnable(true),
|
||||
supervisorMode(true), activeThreads(0), reg(0), pred(0),
|
||||
shadowReg(core->a.getNRegs()), shadowPReg(core->a.getNPRegs()), id(id),
|
||||
spawned(false)
|
||||
|
@ -136,13 +136,16 @@ void Warp::step() {
|
|||
try {
|
||||
inst->executeOn(*this);
|
||||
} catch (MemoryUnit::PageFault pf) {
|
||||
D(2, "Interrupt: Page fault");
|
||||
pc -= decPos; /* Reset to beginning of faulting address. */
|
||||
interrupt(pf.notFound?1:2);
|
||||
reg[0][1] = pf.faultAddr;
|
||||
} catch (DivergentBranchException e) {
|
||||
D(2, "Interrupt 4: Divergent branch");
|
||||
pc -= decPos;
|
||||
interrupt(4);
|
||||
} catch (DomainException e) {
|
||||
D(2, "Interrupt: DomainException");
|
||||
interrupt(5);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue