From 6880e01db6cf1b7178b27665ebd4662d8b5be48a Mon Sep 17 00:00:00 2001 From: cdkersey Date: Tue, 4 Aug 2015 13:32:10 -0600 Subject: [PATCH] Fix damage to trap instruction caused by warp correctness bugfixes. --- src/instruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instruction.cpp b/src/instruction.cpp index 19921b48..e85b3f1b 100644 --- a/src/instruction.cpp +++ b/src/instruction.cpp @@ -281,11 +281,11 @@ void Instruction::executeOn(Warp &c) { break; case ISNEG: pReg[pdest] = (1ll<<(wordSz*8 - 1))®[rsrc[0]]; break; - case HALT: D(3, "=== EXECUTING halt ==="); - c.activeThreads = 0; + case HALT: c.activeThreads = 0; nextActiveThreads = 0; break; case TRAP: c.interrupt(0); + nextPc = c.core->interruptEntry; break; case JMPRU: c.supervisorMode = false; if (!pcSet) nextPc = reg[rsrc[0]];