// being dispatched than the maximum number that fit in the
// data fifo at that dock.
- int MAX_BAG_SIZE = (1<<6)-1;
+ int MAX_BAG_SIZE = fleet.getMaxCodeBagSize();
// FUZZ is an estimate of the number of instructions required
// to dispatch a code bag descriptor
int FUZZ = 4;
if (instructions.length <= MAX_BAG_SIZE) {
- BitVector descriptor = new BitVector(fleet.getWordWidth());
- descriptor.set( (leastUnallocatedAddress<<6) | instructions.length );
+ BitVector descriptor = fleet.makeCodeBagDescriptor(leastUnallocatedAddress, instructions.length);
leastUnallocatedAddress += instructions.length;
for(Instruction i : instructions)
all_instructions.add(i);