configures logger in main

This commit is contained in:
Eyck-Alexander Jentzsch 2025-03-31 09:52:39 +02:00
parent a2e5405e25
commit cc123939ce

View File

@ -40,6 +40,7 @@
#include <vector>
#include "iss/arch/tgc_mapper.h"
#include "util/logging.h"
#include <boost/lexical_cast.hpp>
#include <boost/program_options.hpp>
#ifdef WITH_LLVM
@ -258,6 +259,7 @@ int main(int argc, char* argv[]) {
LOG(ERR) << "Error opening file " << filename << std::endl;
return 1;
}
LOGGER(DEFAULT)::reporting_level() = logging::ERR;
for(auto addr = start_addr; addr < end_addr; addr += data.size()) {
vm->get_arch()->read(iss::address_type::PHYSICAL, iss::access_type::DEBUG_READ, 0 /*MEM*/, addr, data.size(),
data.data()); // FIXME: get space from iss::arch::traits<ARCH>::mem_type_e::MEM