OSDN Git Service

target/s390x/arch_dump: Simplify memory allocation in s390x_write_elf64_notes()
authorThomas Huth <thuth@redhat.com>
Wed, 15 Feb 2023 08:57:03 +0000 (09:57 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 27 Feb 2023 08:15:38 +0000 (09:15 +0100)
commit4376a770c719f480dd6fad130db8eceeda8cdcb7
treef1bcdc32b0f5ed1a27e7de407dc3777678214cab
parenteb60026120081430d554c9cabaa36c4ac271fce0
target/s390x/arch_dump: Simplify memory allocation in s390x_write_elf64_notes()

We are not on a hot path here, so there is no real need for the logic
here with the split heap and stack space allocation. Simplify it by
always allocating memory from the heap.

Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230215085703.746788-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/arch_dump.c