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/sparc/system.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/arch/sparc/system.cc') diff --git a/src/arch/sparc/system.cc b/src/arch/sparc/system.cc index a68b11cad..5896061a6 100644 --- a/src/arch/sparc/system.cc +++ b/src/arch/sparc/system.cc @@ -138,22 +138,22 @@ SparcSystem::initState() // Load reset binary into memory reset->setTextBase(params()->reset_addr); - reset->loadSections(physProxy); + reset->loadSegments(physProxy); // Load the openboot binary openboot->setTextBase(params()->openboot_addr); - openboot->loadSections(physProxy); + openboot->loadSegments(physProxy); // Load the hypervisor binary hypervisor->setTextBase(params()->hypervisor_addr); - hypervisor->loadSections(physProxy); + hypervisor->loadSegments(physProxy); // Load the nvram image nvram->setTextBase(params()->nvram_addr); - nvram->loadSections(physProxy); + nvram->loadSegments(physProxy); // Load the hypervisor description image hypervisor_desc->setTextBase(params()->hypervisor_desc_addr); - hypervisor_desc->loadSections(physProxy); + hypervisor_desc->loadSegments(physProxy); // Load the partition description image partition_desc->setTextBase(params()->partition_desc_addr); - partition_desc->loadSections(physProxy); + partition_desc->loadSegments(physProxy); // @todo any fixup code over writing data in binaries on setting break -- cgit v1.2.3