xref: /qemu/include/user/cpu_loop.h (revision fb5c28e1955537228fe59a901e6cf6258da682d5)
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 
20cd71c089SLaurent Vivier #ifndef CPU_LOOP_COMMON_H
21cd71c089SLaurent Vivier #define CPU_LOOP_COMMON_H
22cd71c089SLaurent Vivier 
23cd71c089SLaurent Vivier #include "exec/log.h"
245da4063fSRichard Henderson #include "special-errno.h"
25cd71c089SLaurent Vivier 
26bd5ccd61SHelge Deller void target_exception_dump(CPUArchState *env, const char *fmt, int code);
27bd5ccd61SHelge Deller #define EXCP_DUMP(env, fmt, code) \
28bd5ccd61SHelge Deller     target_exception_dump(env, fmt, code)
29cd71c089SLaurent Vivier 
30*fb5c28e1SPhilippe Mathieu-Daudé typedef struct target_pt_regs target_pt_regs;
31*fb5c28e1SPhilippe Mathieu-Daudé 
32*fb5c28e1SPhilippe Mathieu-Daudé void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs);
33*fb5c28e1SPhilippe Mathieu-Daudé 
34cd71c089SLaurent Vivier #endif
35