From dca28f1c4457a744859e5ffb7dc8282a857c257b Mon Sep 17 00:00:00 2001 From: heneault Date: Thu, 2 Aug 2018 08:59:46 -0400 Subject: [PATCH] commit emulator flash modification to persistent storage (#390) --- emulator/flash.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emulator/flash.c b/emulator/flash.c index a275cf641a..02b2a4ec71 100644 --- a/emulator/flash.c +++ b/emulator/flash.c @@ -20,10 +20,14 @@ #include #include #include +#include #include "memory.h" -void flash_lock(void) {} +void flash_lock(void) { + sync(); +} + void flash_unlock(void) {} void flash_clear_status_flags(void) {} @@ -131,5 +135,6 @@ void svc_flash_erase_sector(uint16_t sector) { uint32_t svc_flash_lock(void) { assert (!flash_locked); flash_locked = true; + sync(); return 0; }