xref: /qemu/include/user/cpu_loop.h (revision 166a4b6e43b8904a150a946243457b7db9567c67)
1cd71c089SLaurent Vivier /*
2cd71c089SLaurent Vivier  *  qemu user cpu loop
3cd71c089SLaurent Vivier  *
4cd71c089SLaurent Vivier  *  Copyright (c) 2003-2008 Fabrice Bellard
5cd71c089SLaurent Vivier  *
6cd71c089SLaurent Vivier  *  This program is free software; you can redistribute it and/or modify
7cd71c089SLaurent Vivier  *  it under the terms of the GNU General Public License as published by
8cd71c089SLaurent Vivier  *  the Free Software Foundation; either version 2 of the License, or
9cd71c089SLaurent Vivier  *  (at your option) any later version.
10cd71c089SLaurent Vivier  *
11cd71c089SLaurent Vivier  *  This program is distributed in the hope that it will be useful,
12cd71c089SLaurent Vivier  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13cd71c089SLaurent Vivier  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14cd71c089SLaurent Vivier  *  GNU General Public License for more details.
15cd71c089SLaurent Vivier  *
16cd71c089SLaurent Vivier  *  You should have received a copy of the GNU General Public License
17cd71c089SLaurent Vivier  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
18cd71c089SLaurent Vivier  */
19cd71c089SLaurent Vivier 
20b74c8981SPhilippe Mathieu-Daudé #ifndef USER_CPU_LOOP_H
21b74c8981SPhilippe Mathieu-Daudé #define USER_CPU_LOOP_H
22cd71c089SLaurent Vivier 
23cd71c089SLaurent Vivier #include "exec/log.h"
245da4063fSRichard Henderson #include "special-errno.h"
25cd71c089SLaurent Vivier 
26*166a4b6eSPhilippe Mathieu-Daudé G_NORETURN void cpu_loop(CPUArchState *env);
27*166a4b6eSPhilippe Mathieu-Daudé 
28bd5ccd61SHelge Deller void target_exception_dump(CPUArchState *env, const char *fmt, int code);
29bd5ccd61SHelge Deller #define EXCP_DUMP(env, fmt, code) \
30bd5ccd61SHelge Deller     target_exception_dump(env, fmt, code)
31cd71c089SLaurent Vivier 
32fb5c28e1SPhilippe Mathieu-Daudé typedef struct target_pt_regs target_pt_regs;
33fb5c28e1SPhilippe Mathieu-Daudé 
34fb5c28e1SPhilippe Mathieu-Daudé void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs);
35fb5c28e1SPhilippe Mathieu-Daudé 
36cd71c089SLaurent Vivier #endif
37