Ard Biesheuvel 68115ed5fc hw/arm/boot: take Linux/arm64 TEXT_OFFSET header field into account
The arm64 boot protocol stipulates that the kernel must be loaded
TEXT_OFFSET bytes beyond a 2 MB aligned base address, where TEXT_OFFSET
could be any 4 KB multiple between 0 and 2 MB, and whose value can be
found in the header of the Image file.

So after attempts to load the arm64 kernel image as an ELF file or as a
U-Boot image have failed (both of which have their own way of specifying
the load offset), try to determine the TEXT_OFFSET from the image after
loading it but before mapping it as a ROM mapping into the guest address
space.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1489414630-21609-1-git-send-email-ard.biesheuvel@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-04-20 17:39:17 +01:00
..
2017-04-05 17:23:52 +02:00
2016-10-04 13:28:07 +01:00
2017-01-27 18:08:00 +01:00
2017-01-20 11:15:06 +00:00
2017-03-27 12:14:45 +02:00
2016-05-18 15:04:27 +03:00
2017-04-02 21:17:47 +02:00
2017-04-05 17:23:52 +02:00
2017-01-27 18:07:59 +01:00
2017-02-24 10:37:21 +00:00
2017-03-31 08:48:13 +08:00
2017-02-28 20:40:36 +01:00
2017-02-02 18:48:06 +00:00
2017-02-24 10:13:57 +00:00
2016-01-29 15:07:25 +00:00
2017-03-27 17:34:50 +01:00
2017-03-01 23:09:46 +00:00
2017-02-28 16:18:49 +00:00
2016-10-28 18:17:24 +03:00
2016-09-15 15:32:22 +03:00