replaces literal constant with symbolic definition
This commit is contained in:
parent
9f5326c110
commit
03cbd305c6
@ -338,7 +338,7 @@ struct riscv_hart_common {
|
|||||||
const auto fsize = pseg->get_file_size(); // 0x42c/0x0
|
const auto fsize = pseg->get_file_size(); // 0x42c/0x0
|
||||||
const auto seg_data = pseg->get_data();
|
const auto seg_data = pseg->get_data();
|
||||||
const auto type = pseg->get_type();
|
const auto type = pseg->get_type();
|
||||||
if(type == 1 && fsize > 0) {
|
if(type == ELFIO::PT_LOAD && fsize > 0) {
|
||||||
auto res = cb(pseg->get_physical_address(), fsize, reinterpret_cast<const uint8_t* const>(seg_data));
|
auto res = cb(pseg->get_physical_address(), fsize, reinterpret_cast<const uint8_t* const>(seg_data));
|
||||||
if(res != iss::Ok)
|
if(res != iss::Ok)
|
||||||
CPPLOG(ERR) << "problem writing " << fsize << "bytes to 0x" << std::hex << pseg->get_physical_address();
|
CPPLOG(ERR) << "problem writing " << fsize << "bytes to 0x" << std::hex << pseg->get_physical_address();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user