From 3c65c44a1ae87607337a56ca45b6b305778d52ff Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 28 Sep 2019 19:26:02 -0700 Subject: base: Rename Section to Segment, and some of its members. ELF is, in my opinion, the most important object file format gem5 currently understands, and in ELF terminolgy the blob of data that needs to be loaded into memory to a particular location is called a segment. A section is a software level view of what's in a region of memory, and a single segment may contain multiple sections which happen to follow each other in memory. Change-Id: Ib810c5050723d5a96bd7550515b08ac695fb1b02 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21462 Tested-by: kokoro Reviewed-by: Andreas Sandberg Maintainer: Gabe Black --- src/arch/riscv/bare_metal/system.cc | 2 +- src/arch/riscv/process.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/riscv') diff --git a/src/arch/riscv/bare_metal/system.cc b/src/arch/riscv/bare_metal/system.cc index 5cbd63af2..3fb07a489 100644 --- a/src/arch/riscv/bare_metal/system.cc +++ b/src/arch/riscv/bare_metal/system.cc @@ -55,7 +55,7 @@ BareMetalRiscvSystem::initState() RiscvSystem::initState(); // load program sections into memory - if (!bootloader->loadSections(physProxy)) { + if (!bootloader->loadSegments(physProxy)) { warn("could not load sections to memory"); } } diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc index ab8305257..ca3f0e2b8 100644 --- a/src/arch/riscv/process.cc +++ b/src/arch/riscv/process.cc @@ -126,7 +126,7 @@ RiscvProcess::argsInit(int pageSize) const int addrSize = sizeof(IntType); updateBias(); - objFile->loadSections(initVirtMem); + objFile->loadSegments(initVirtMem); ElfObject* elfObject = dynamic_cast(objFile); memState->setStackMin(memState->getStackBase()); -- cgit v1.2.3