From 99c0a0a3b7e2b9f3222e93190564724e6177a6f2 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 23 Aug 2016 11:02:49 -0400 Subject: Reset table of cores after resetting FPGA from CLI. --- projects/hsm/mgmt-fpga.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/hsm/mgmt-fpga.c b/projects/hsm/mgmt-fpga.c index 778ded9..d76315e 100644 --- a/projects/hsm/mgmt-fpga.c +++ b/projects/hsm/mgmt-fpga.c @@ -119,6 +119,7 @@ static int cmd_fpga_reset(struct cli_def *cli, const char *command, char *argv[] { fpgacfg_access_control(ALLOW_FPGA); fpgacfg_reset_fpga(RESET_FULL); + hal_core_reset_table(); cli_print(cli, "FPGA has been reset"); return CLI_OK; @@ -126,7 +127,7 @@ static int cmd_fpga_reset(struct cli_def *cli, const char *command, char *argv[] static int cmd_fpga_show_cores(struct cli_def *cli, const char *command, char *argv[], int argc) { - const hal_core_t *core; + hal_core_t *core; const hal_core_info_t *info; if (! fpgacfg_check_done()) { -- cgit v1.2.3