From 7c240a664bb68bc1d9c35254fe06e07436eb1318 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 9 Jul 2022 13:17:18 +1000 Subject: [PATCH] fetch1: Fix debug stop again This fixes a bug which prevents the core from stopping properly. The same bug was previously fixed in commit e41cb01bca99 ("fetch1: Fix debug stop", 2020-12-19) and reintroduced by commit 0fb207be6069 ("fetch1: Implement a simple branch target cache", 2020-12-19). Signed-off-by: Paul Mackerras --- fetch1.vhdl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch1.vhdl b/fetch1.vhdl index 4c4a6a8..af1dd6b 100644 --- a/fetch1.vhdl +++ b/fetch1.vhdl @@ -93,7 +93,7 @@ begin end if; -- always send the up-to-date stop mark and req r.stop_mark <= stop_in; - r.req <= not rst; + r.req <= not rst and not stop_in; end if; end process; log_out <= log_nia;