* [Qemu-devel] [PATCH] arm: Fix return code of arm_load_elf
@ 2018-07-30 17:37 Adam Lackorzynski
2018-08-02 12:13 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Adam Lackorzynski @ 2018-07-30 17:37 UTC (permalink / raw)
To: qemu-devel
Use an int64_t as a return type to restore
the negative check for arm_load_as.
Signed-off-by: Adam Lackorzynski <adam@l4re.org>
---
hw/arm/boot.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index e09201cc97..ca9467e583 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -818,9 +818,9 @@ static int do_arm_linux_init(Object *obj, void *opaque)
return 0;
}
-static uint64_t arm_load_elf(struct arm_boot_info *info, uint64_t *pentry,
- uint64_t *lowaddr, uint64_t *highaddr,
- int elf_machine, AddressSpace *as)
+static int64_t arm_load_elf(struct arm_boot_info *info, uint64_t *pentry,
+ uint64_t *lowaddr, uint64_t *highaddr,
+ int elf_machine, AddressSpace *as)
{
bool elf_is64;
union {
@@ -829,7 +829,7 @@ static uint64_t arm_load_elf(struct arm_boot_info *info, uint64_t *pentry,
} elf_header;
int data_swab = 0;
bool big_endian;
- uint64_t ret = -1;
+ int64_t ret = -1;
Error *err = NULL;
--
2.18.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] arm: Fix return code of arm_load_elf
2018-07-30 17:37 [Qemu-devel] [PATCH] arm: Fix return code of arm_load_elf Adam Lackorzynski
@ 2018-08-02 12:13 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2018-08-02 12:13 UTC (permalink / raw)
To: Adam Lackorzynski; +Cc: QEMU Developers
On 30 July 2018 at 18:37, Adam Lackorzynski <adam@l4re.org> wrote:
> Use an int64_t as a return type to restore
> the negative check for arm_load_as.
>
> Signed-off-by: Adam Lackorzynski <adam@l4re.org>
> ---
> hw/arm/boot.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Applied to target-arm.for-3.1, thanks.
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-02 12:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30 17:37 [Qemu-devel] [PATCH] arm: Fix return code of arm_load_elf Adam Lackorzynski
2018-08-02 12:13 ` Peter Maydell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.