Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target/riscv: fix error on exit with uninitialized target
riscv_deinit_target() tries to get_target_type() even if the examination failed or was not called at all. dtm_version is not known and an annoying error is printed: Error: [riscv.cpu.0] Unsupported DTM version: -1 Error: [riscv.cpu.0] Could not identify target type. Avoid calling get_target_type() if dtm_version is DTM_DTMCS_VERSION_UNKNOWN. Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Change-Id: I48239b1b11561357e845f3a6cb3a8e3b19e35715
- Loading branch information