Initialize PID register
authorAnton Blanchard <anton@linux.ibm.com>
Sun, 3 Jan 2021 05:46:28 +0000 (16:46 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Sun, 3 Jan 2021 19:08:59 +0000 (06:08 +1100)
If the PID register is read before it is written we'll consume
X state data.

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

index 09df3ae22debbd081a1dc772d27ad173bcb54f75..623c2c9313077c2ffa8a44fbefef56ac4e3eae1b 100644 (file)
--- a/mmu.vhdl
+++ b/mmu.vhdl
@@ -88,6 +88,7 @@ begin
                 r.pt0_valid <= '0';
                 r.pt3_valid <= '0';
                 r.prtbl <= (others => '0');
+                r.pid <= (others => '0');
             else
                 if rin.valid = '1' then
                     report "MMU got tlb miss for " & to_hstring(rin.addr);