no immediate constant, make 32-bit wide
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 24 Nov 2018 01:22:06 +0000 (01:22 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 24 Nov 2018 01:22:06 +0000 (01:22 +0000)
cpu_decoder.py

index 3239a0d453688de701ddb99e572cb85ce76a744a..3f91824316dfbb6d1f4dae702a14230145418d9b 100644 (file)
@@ -63,7 +63,7 @@ class CPUDecoder(Module):
         """ calculate immediate
         """
         ci = {}
-        no_imm = 0x0
+        no_imm = Constant(0x0, 32)
 
         # R-type: no immediate
         for op in [OP.amo, OP.op, OP.op_32, OP.op_fp]: