From c073756a3f447e84eee72f8f363fd712eeeabcd6 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sun, 22 Sep 2019 05:01:50 +0800 Subject: [PATCH] fpga_io: reset the core before load. --- fpga_io.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fpga_io.cpp b/fpga_io.cpp index 32d2c05..caa75ab 100644 --- a/fpga_io.cpp +++ b/fpga_io.cpp @@ -456,6 +456,7 @@ int fpga_load_rbf(const char *name, const char *cfg) if(cfg) { + fpga_core_reset(1); make_env(name, cfg); do_bridge(0); reboot(0); @@ -492,6 +493,7 @@ int fpga_load_rbf(const char *name, const char *cfg) } else { + fpga_core_reset(1); if (read(rbf, buf, st.st_size)