20#include <boost/filesystem.hpp>
25#include "etiss/jit/CPU.h"
60 if (!boost::filesystem::exists(xmlFile))
63 etiss::fmt::format(
"Could not find XML GDB target descriptions for arch: {}", archName));
66 std::ifstream t(xmlFile);
67 std::string xmlContent((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
std::string getXMLDirectory(std::string archName)
general configuration and logging
static const unsigned INVALIDMAPPING
virtual etiss::uint64 getInstructionPointer(ETISS_CPU *cpu)
allows to calculate the index of the instruction to be executed for breakpoint checks.
virtual unsigned mappedRegisterCount()
returns the number of registers in the gdb defined register list
virtual std::string mapRegister(unsigned index)
the returned string identifies the register at the given index as defined by gdb.
virtual bool isLittleEndian()
returns true if the values are expected to be little endian
virtual std::string getXMLContents(ETISS_CPU *cpu, std::string archName, std::string fname)
std::string installDir()
Get ETISS installation directory.
void log(Verbosity level, std::string msg)
write log message at the given level.
basic cpu state structure needed for execution of any cpu architecture.
etiss_uint64 instructionPointer
pointer to next instruction.