aboutsummaryrefslogtreecommitdiff
path: root/linux-user/elfload.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-05-09 22:57:26 +0200
committerLaurent Vivier <laurent@vivier.eu>2022-05-23 22:47:19 +0200
commit2f6f4290e0f0f3a8ea49a81afebd2d41c327477f (patch)
tree1af89d1ea8757ddfab25f43a90c088d6dce82dfc /linux-user/elfload.c
parentc3a28d71221d30b1f58bf5efc88add20635ce46d (diff)
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>
Diffstat (limited to 'linux-user/elfload.c')
-rw-r--r--linux-user/elfload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 8c0765dd4b..acc21748f9 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -3973,7 +3973,7 @@ static int fill_note_info(struct elf_note_info *info,
if (cpu == thread_cpu) {
continue;
}
- fill_thread_info(info, (CPUArchState *)cpu->env_ptr);
+ fill_thread_info(info, cpu->env_ptr);
}
cpu_list_unlock();