From 129b5078db77fd8bc84fb63c5ef4e461d1f14fe9 Mon Sep 17 00:00:00 2001 From: cdkersey Date: Tue, 4 Aug 2015 12:21:46 -0600 Subject: [PATCH] Formatting. --- src/instruction.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/instruction.cpp b/src/instruction.cpp index d308fb18..47f86907 100644 --- a/src/instruction.cpp +++ b/src/instruction.cpp @@ -345,21 +345,21 @@ void Instruction::executeOn(Warp &c) { c.domStack.pop(); } break; - case WSPAWN: if (sjOnce) { - sjOnce = false; - D(0, "Spawning a new warp."); - for (unsigned i = 0; i < c.core->w.size(); ++i) { - Warp &newWarp(c.core->w[i]); - if (newWarp.activeThreads == 0) { - newWarp.pc = reg[rsrc[0]]; - newWarp.reg[0][rdest] = reg[rsrc[1]]; - newWarp.activeThreads = 1; - newWarp.supervisorMode = false; - break; + case WSPAWN: if (sjOnce) { + sjOnce = false; + D(0, "Spawning a new warp."); + for (unsigned i = 0; i < c.core->w.size(); ++i) { + Warp &newWarp(c.core->w[i]); + if (newWarp.activeThreads == 0) { + newWarp.pc = reg[rsrc[0]]; + newWarp.reg[0][rdest] = reg[rsrc[1]]; + newWarp.activeThreads = 1; + newWarp.supervisorMode = false; + break; + } } } - } - break; + break; default: cout << "ERROR: Unsupported instruction: " << *this << "\n"; exit(1);