X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Ffleet%2Finterpreter%2FInterpreter.java;h=5f10626fa234d92b2e092c26f779bae5bcdd58f1;hb=c6d2282ef483917ac627b8511a6eda556d75b5c1;hp=53868ffbca687351d19d9edab133d14f85291b03;hpb=04961d79983370377407b669a4d9bf66e35740ae;p=fleet.git diff --git a/src/edu/berkeley/fleet/interpreter/Interpreter.java b/src/edu/berkeley/fleet/interpreter/Interpreter.java index 53868ff..5f10626 100644 --- a/src/edu/berkeley/fleet/interpreter/Interpreter.java +++ b/src/edu/berkeley/fleet/interpreter/Interpreter.java @@ -177,13 +177,11 @@ public class Interpreter extends FleetTwoFleet { public synchronized void sendWord(Destination d, BitVector word) { sendWord(d, word, null); } public synchronized void sendWord(Destination d, BitVector word, BitVector signal) { InterpreterPath path = (InterpreterPath)debugShip.getDock("in").getPath(d, signal==null?new BitVector(1):signal); - ((InterpreterDestination)d). - addDataFromFabric(new Packet(path, word, false)); + new Packet(path, word, false).send(); } public synchronized void sendToken(Destination d) { InterpreterPath path = (InterpreterPath)debugShip.getDock("in").getPath(d, new BitVector(1)); - ((InterpreterDestination)d). - addDataFromFabric(new Packet(path, new BitVector(getWordWidth()), true)); + new Packet(path, new BitVector(getWordWidth()), true).send(); } public InterpreterProcess(Instruction[] instructions) { this.instructions = instructions;