Fix a ghdysynth inferred latch error in execute
authorAnton Blanchard <anton@linux.ibm.com>
Sat, 11 Jan 2020 02:24:14 +0000 (13:24 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Sat, 11 Jan 2020 02:24:14 +0000 (13:24 +1100)
It should never happen in practise, but ghdlsynth is complaining about
an inferred latch here. Fix it

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
execute1.vhdl

index 4986c71d13ff5749862e7d499a17a574f697363b..4714ec533127338d9d91987bedc12720b91d3079 100644 (file)
@@ -386,6 +386,7 @@ begin
                    when "1110" => -- CROR
                        crresult := (e_in.cr(banum) or e_in.cr(bbnum));
                    when others =>
+                       crresult := '0';
                        report "BAD CR?";
                    end case;
                    v.e.write_cr_mask := num_to_fxm((31-btnum) / 4);