From acbb7a2eed15258061e038254469197ae3831165 Mon Sep 17 00:00:00 2001 From: Dam Sunwoo Date: Tue, 25 Sep 2012 11:49:41 -0500 Subject: ARM: added support for flattened device tree blobs Newer Linux kernels require DTB (device tree blobs) to specify platform configurations. The input DTB filename can be specified through gem5 parameters in LinuxArmSystem. --- src/base/loader/object_file.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base') diff --git a/src/base/loader/object_file.hh b/src/base/loader/object_file.hh index 2ec41bf12..4a789d321 100644 --- a/src/base/loader/object_file.hh +++ b/src/base/loader/object_file.hh @@ -127,6 +127,11 @@ class ObjectFile size_t dataSize() const { return data.size; } size_t bssSize() const { return bss.size; } + /* This function allows you to override the base address where + * a binary is going to be loaded or set it if the binary is just a + * blob that doesn't include an object header. + * @param a address to load the binary/text section at + */ void setTextBase(Addr a) { text.baseAddr = a; } }; -- cgit v1.2.3