From 5c624e7e52d71dd9e51d67d51fccace71e8dbc6f Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 3 Nov 2022 21:01:11 +0800 Subject: [PATCH] add a flush after every PDDB write uncommitted data will lead to corruption later on --- emulation/peripherals/MXIC_MX66UM1G45G.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/emulation/peripherals/MXIC_MX66UM1G45G.cs b/emulation/peripherals/MXIC_MX66UM1G45G.cs index 6ef9975f7..513b64796 100644 --- a/emulation/peripherals/MXIC_MX66UM1G45G.cs +++ b/emulation/peripherals/MXIC_MX66UM1G45G.cs @@ -692,6 +692,7 @@ namespace Antmicro.Renode.Peripherals.SPI.Betrusted tmp_byte[0] = val; InternalBackingFile.Seek(position, SeekOrigin.Begin); InternalBackingFile.Write(tmp_byte, 0, 1); + InternalBackingFile.Flush(); } }