X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2Fisa%2FAsmFloatOperand.java;h=a15d9d5ac04d82f2d5e559b0b1812728f4b305e1;hb=153f81323a215691a0477af3fd1dd4a9d5b02958;hp=7a1a6ebf2ba0354e9e4581b6ae9c79098f9a6b65;hpb=40fa7adb9fe05cd2d2eeb18a787b98299b76136a;p=Mograsim.git diff --git a/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java b/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java index 7a1a6ebf..a15d9d5a 100644 --- a/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java +++ b/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java @@ -90,7 +90,7 @@ public class AsmFloatOperand implements AsmOperand int bitLength = raw.bitLength() - (bi.signum() - 1) / 2; if (bitLength > size) throw new AsmNumberFormatException("Error parsing %s: bit count %d exceeds size %d", bi, bitLength, size); - BitVectorMutator bvm = BitVectorMutator.ofLength(size); + BitVectorMutator bvm = BitVectorMutator.ofWidth(size); for (int i = 0; i < size; i++) bvm.setLSBit(i, Bit.of(raw.testBit(i))); return bvm.toBitVector();