diff options
author | Paul Selkirk <paul@psgd.org> | 2016-08-23 11:02:49 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-08-23 11:02:49 -0400 |
commit | 99c0a0a3b7e2b9f3222e93190564724e6177a6f2 (patch) | |
tree | 5e978c2a6786a7c8071b32b30c725472d2aec3b9 /projects | |
parent | 6f00eb15959b916f725a1768c6ce71c02e43909e (diff) |
Reset table of cores after resetting FPGA from CLI.
Diffstat (limited to 'projects')
-rw-r--r-- | projects/hsm/mgmt-fpga.c | 3 |
1 files changed, 2 insertions, 1 deletions
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()) { |