]> xenbits.xensource.com Git - people/pauldu/qemu.git/commit
semihosting: Support SYS_HEAPINFO when env->boot_info is not set
authorKeith Packard <keithp@keithp.com>
Fri, 8 Jan 2021 22:42:51 +0000 (22:42 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 18 Jan 2021 10:05:06 +0000 (10:05 +0000)
commit095f8c029319b79cce487e3b566cd826b93da3e6
treea0bd089d43418c1e8802a1db39781842ea36c8ea
parent3c37cfe0b1e8a49e6a48c53a4685618a60b981df
semihosting: Support SYS_HEAPINFO when env->boot_info is not set

env->boot_info is only set in some ARM startup paths, so we cannot
rely on it to support the SYS_HEAPINFO semihosting function. When not
available, fallback to finding a RAM memory region containing the
current stack and use the base of that.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210107170717.2098982-5-keithp@keithp.com>
Message-Id: <20210108224256.2321-16-alex.bennee@linaro.org>
hw/semihosting/arm-compat-semi.c