summaryrefslogtreecommitdiff
path: root/src/base/loader
diff options
context:
space:
mode:
authorDam Sunwoo <dam.sunwoo@arm.com>2012-09-25 11:49:41 -0500
committerDam Sunwoo <dam.sunwoo@arm.com>2012-09-25 11:49:41 -0500
commitacbb7a2eed15258061e038254469197ae3831165 (patch)
tree30bccf3e2f0ede2e050abfad2e87d7fb1c57379c /src/base/loader
parent5adb4ddc126385567f602568c5ddbaa1d6fe1d6f (diff)
downloadgem5-acbb7a2eed15258061e038254469197ae3831165.tar.xz
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.
Diffstat (limited to 'src/base/loader')
-rw-r--r--src/base/loader/object_file.hh5
1 files changed, 5 insertions, 0 deletions
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; }
};