From 54e20dad0f8efe01152d00fe41bf6aa2c44f5bba Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 4 Feb 2019 22:04:37 +0100 Subject: Setup initial PC according executable entry form ELF file if it is non zero. Signed-off-by: Pavel Pisa --- qtmips_machine/programloader.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qtmips_machine/programloader.h') diff --git a/qtmips_machine/programloader.h b/qtmips_machine/programloader.h index 686f64c..607bdb0 100644 --- a/qtmips_machine/programloader.h +++ b/qtmips_machine/programloader.h @@ -54,6 +54,7 @@ public: void to_memory(Memory *mem); // Writes all loaded sections to memory std::uint32_t end(); // Return address after which there is no more code for sure + std::uint32_t get_executable_entry(); private: int fd; Elf *elf; @@ -61,6 +62,7 @@ private: size_t n_secs; // number of sections in elf program header Elf32_Phdr *phdrs; // program section headers QVector map; // external index to phdrs index + std::uint32_t executable_entry; }; } -- cgit v1.2.3