sim-se: const for loader's loadSection param

The port proxy can be declared as a reference to a const proxy
rather than just a reference to a proxy.

Change-Id: I4640b0c5f33e2334c1e7630131f78607ced40a34
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/12301
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
Brandon Potter
2018-08-28 14:49:51 -04:00
committed by Brandon Potter
parent dc338b402f
commit da7e63d088
4 changed files with 9 additions and 7 deletions

View File

@@ -88,7 +88,7 @@ class ObjectFile
static const Addr maxAddr = std::numeric_limits<Addr>::max();
virtual bool loadSections(PortProxy& mem_proxy,
virtual bool loadSections(const PortProxy& mem_proxy,
Addr mask = maxAddr, Addr offset = 0);
virtual bool loadAllSymbols(SymbolTable *symtab, Addr base = 0,
@@ -129,7 +129,7 @@ class ObjectFile
Section data;
Section bss;
bool loadSection(Section *sec, PortProxy& mem_proxy, Addr mask,
bool loadSection(Section *sec, const PortProxy& mem_proxy, Addr mask,
Addr offset = 0);
void setGlobalPointer(Addr global_ptr) { globalPtr = global_ptr; }