From: Benjamin Herrenschmidt Date: Wed, 30 Oct 2019 02:26:43 +0000 (+1100) Subject: cr_file: Check write_cr_enable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1249a11349af27a7b013713a17da6b823d1c7951;p=microwatt.git cr_file: Check write_cr_enable Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- diff --git a/cr_file.vhdl b/cr_file.vhdl index fa56dd9..d8ce230 100644 --- a/cr_file.vhdl +++ b/cr_file.vhdl @@ -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;