From ab8c0676169ac344bceb145673d0eafc3a7fb9a8 Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Sat, 13 Jul 2019 23:33:10 +0300 Subject: [PATCH] Flush pipelines when entering an exception Former-commit-id: c00754b8156ecac66cc0a72f6a7c73ee700448f0 --- src/arm7tdmi/exception.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arm7tdmi/exception.rs b/src/arm7tdmi/exception.rs index 4746a65..0dacfb4 100644 --- a/src/arm7tdmi/exception.rs +++ b/src/arm7tdmi/exception.rs @@ -49,5 +49,7 @@ impl Core { // Set PC to vector address self.pc = vector; + self.pipeline_arm.flush(); + self.pipeline_thumb.flush(); } }