linux-user/elfload: Remove pointless non-const CPUArchState cast

fill_thread_info() takes a pointer to const.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220509205728.51912-2-philippe.mathieu.daude@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Philippe Mathieu-Daudé 2022-05-09 22:57:26 +02:00 committed by Laurent Vivier
parent c3a28d7122
commit 2f6f4290e0

View File

@ -3973,7 +3973,7 @@ static int fill_note_info(struct elf_note_info *info,
if (cpu == thread_cpu) { if (cpu == thread_cpu) {
continue; continue;
} }
fill_thread_info(info, (CPUArchState *)cpu->env_ptr); fill_thread_info(info, cpu->env_ptr);
} }
cpu_list_unlock(); cpu_list_unlock();