cr_file: Check write_cr_enable
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Oct 2019 02:26:43 +0000 (13:26 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 5 Dec 2019 21:53:13 +0000 (08:53 +1100)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
cr_file.vhdl

index fa56dd91bb5b25d786fb73191c8baf1cae6a8393..d8ce2300432f4838ec063665b28b91e3097a3d29 100644 (file)
@@ -43,8 +43,8 @@ begin
         if rising_edge(clk) then
             if w_in.write_cr_enable = '1' then
                 report "Writing " & to_hstring(w_in.write_cr_data) & " to CR mask " & to_hstring(w_in.write_cr_mask);
+               crs <= crs_updated;
             end if;
-            crs <= crs_updated;
         end if;
     end process;