From 13bcbeefd454088963ace6f249de19c47e961234 Mon Sep 17 00:00:00 2001 From: Adam Megacz Date: Sat, 22 Aug 2009 14:28:03 -0700 Subject: [PATCH] better error messages in LoopFactory --- src/edu/berkeley/fleet/loops/LoopFactory.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/edu/berkeley/fleet/loops/LoopFactory.java b/src/edu/berkeley/fleet/loops/LoopFactory.java index 1e79135..769a6fc 100644 --- a/src/edu/berkeley/fleet/loops/LoopFactory.java +++ b/src/edu/berkeley/fleet/loops/LoopFactory.java @@ -372,7 +372,8 @@ public class LoopFactory { if (!olc_loop) { if (numInstructionsNotIncludingNonblockingPrefix > capacity) - throw new RuntimeException("instruction sequence is too long for instruction fifo at " + dock); + throw new RuntimeException("instruction sequence is too long for instruction fifo at " + + dock + " ("+numInstructionsNotIncludingNonblockingPrefix+">"+capacity+")"); } else { if (count != 0) { ic.add(new Instruction.Set(dock, Predicate.Default, SetDest.OuterLoopCounter, SetSource.Decrement)); @@ -397,7 +398,8 @@ public class LoopFactory { if (olc_loop) { ic.add(new Instruction.Tail(dock)); if (loopSize > capacity) - throw new RuntimeException("instruction loop is too long for instruction fifo at " + dock); + throw new RuntimeException("instruction loop is too long for instruction fifo at " + + dock + " ("+loopSize+">"+capacity+")"); } if (next != null) { -- 1.7.10.4