Logo
Explore Help
Sign In
starred/qemu
1
0
Fork 0
You've already forked qemu
mirror of https://github.com/qemu/qemu.git synced 2026-07-08 17:46:10 +00:00
Code Issues 380 Packages Projects Releases Wiki Activity
Files
f83f5505497c2b2b08a9bc9a3bd5aee2df5fa7ca
qemu/linux-user/sparc/cpu_loop.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
147 B
C
Raw Normal View History

linux-user/sparc: flush register windows before core dump Without this, only the crash frame's window is spilled to the stack; all deeper call frames remain in the register file and are absent from the core's memory segments. Stack unwinding fails past the first DWARF step because the callers' register save areas contain stale/garbage data. The real kernel calls flush_all_user_windows() at the top of do_coredump(). Mirror that via a weak target_flush_windows() hook called from dump_core_and_abort(), with the SPARC override calling the existing flush_windows() in cpu_loop.c. Signed-off-by: Matt Turner <mattst88@gmail.com> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Helge Deller <deller@gmx.de>
2026-06-03 20:30:59 -04:00
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef SPARC_CPU_LOOP_H
#define SPARC_CPU_LOOP_H
void flush_windows(CPUSPARCState *env);
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 581ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API