Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error on exit with uninitialized target #1015

Open
wants to merge 1 commit into
base: riscv
Choose a base branch
from

Commits on Feb 11, 2024

  1. 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 <[email protected]>
    Change-Id: I48239b1b11561357e845f3a6cb3a8e3b19e35715
    tom-van committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    2ff738d View commit details
    Browse the repository at this point in the history