From 79718ed8797147da2219d2f72235f738ded33871 Mon Sep 17 00:00:00 2001 From: Friedrich Hunstock Date: Tue, 14 Jan 2025 18:18:23 +0100 Subject: [PATCH] Don't send reset from HTIF, if no binary is given This applies when the binary is set to "none". This is useful when implementing a binary loading mechanism outside of the HTIF, and the bootloader is supposed to boot from that. --- fesvr/htif.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fesvr/htif.cc b/fesvr/htif.cc index c64ce2ad..a2477c1e 100644 --- a/fesvr/htif.cc +++ b/fesvr/htif.cc @@ -92,13 +92,12 @@ void htif_t::start() fprintf(stderr, "Error: cannot execute %d-bit program on RV%d hart\n", err.actual_xlen, err.expected_xlen); exit(1); } + reset(); } else { auto empty_symbols = std::map(); load_symbols(empty_symbols); } } - - reset(); } static void bad_address(const std::string& situation, reg_t addr)