diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-08-02 10:25:12 +1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | 7adf9ebb0ac72637833f61e24e44def6228b4484 (patch) | |
| tree | 5fcce3b5b6f2a4ccbcc648121f65252ffe3af893 /linux-user/qemu.h | |
| parent | 05c84cf8df23b8dc81317ee0cea748e6199637f4 (diff) | |
| download | focaccia-qemu-7adf9ebb0ac72637833f61e24e44def6228b4484.tar.gz focaccia-qemu-7adf9ebb0ac72637833f61e24e44def6228b4484.zip | |
semihosting: Initialize heap once per process
While semihosting isn't really thread aware, the current implementation allocates space for the heap per-thread. Remove the heap_base and heap_limit fields from TaskState. Replace with static variables within do_common_semihosting. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/qemu.h')
| -rw-r--r-- | linux-user/qemu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index b6621536b3..4d6fad28c6 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -122,11 +122,6 @@ struct TaskState { #ifdef TARGET_M68K abi_ulong tp_value; #endif -#if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_RISCV) - /* Extra fields for semihosted binaries. */ - abi_ulong heap_base; - abi_ulong heap_limit; -#endif int used; /* non zero if used */ struct image_info *info; struct linux_binprm *bprm; |