Statistics
| Branch: | Revision:

root / target-sh4 / exec.h @ a9899996

History | View | Annotate | Download (1.2 kB)

1 fdf9b3e8 bellard
/*
2 fdf9b3e8 bellard
 *  SH4 emulation
3 5fafdf24 ths
 *
4 fdf9b3e8 bellard
 *  Copyright (c) 2005 Samuel Tardieu
5 fdf9b3e8 bellard
 *
6 fdf9b3e8 bellard
 * This library is free software; you can redistribute it and/or
7 fdf9b3e8 bellard
 * modify it under the terms of the GNU Lesser General Public
8 fdf9b3e8 bellard
 * License as published by the Free Software Foundation; either
9 fdf9b3e8 bellard
 * version 2 of the License, or (at your option) any later version.
10 fdf9b3e8 bellard
 *
11 fdf9b3e8 bellard
 * This library is distributed in the hope that it will be useful,
12 fdf9b3e8 bellard
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 fdf9b3e8 bellard
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 fdf9b3e8 bellard
 * Lesser General Public License for more details.
15 fdf9b3e8 bellard
 *
16 fdf9b3e8 bellard
 * You should have received a copy of the GNU Lesser General Public
17 8167ee88 Blue Swirl
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 fdf9b3e8 bellard
 */
19 fdf9b3e8 bellard
#ifndef _EXEC_SH4_H
20 fdf9b3e8 bellard
#define _EXEC_SH4_H
21 fdf9b3e8 bellard
22 fdf9b3e8 bellard
#include "config.h"
23 fdf9b3e8 bellard
#include "dyngen-exec.h"
24 fdf9b3e8 bellard
25 fdf9b3e8 bellard
register struct CPUSH4State *env asm(AREG0);
26 eda9b09b bellard
27 fdf9b3e8 bellard
#include "cpu.h"
28 fdf9b3e8 bellard
#include "exec-all.h"
29 fdf9b3e8 bellard
30 6a4955a8 aliguori
static inline int cpu_has_work(CPUState *env)
31 6a4955a8 aliguori
{
32 6a4955a8 aliguori
    return (env->interrupt_request & CPU_INTERRUPT_HARD);
33 6a4955a8 aliguori
}
34 6a4955a8 aliguori
35 fdf9b3e8 bellard
#ifndef CONFIG_USER_ONLY
36 fdf9b3e8 bellard
#include "softmmu_exec.h"
37 fdf9b3e8 bellard
#endif
38 fdf9b3e8 bellard
39 10eb0cc0 Paolo Bonzini
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
40 10eb0cc0 Paolo Bonzini
{
41 10eb0cc0 Paolo Bonzini
    env->pc = tb->pc;
42 10eb0cc0 Paolo Bonzini
    env->flags = tb->flags;
43 10eb0cc0 Paolo Bonzini
}
44 10eb0cc0 Paolo Bonzini
45 fdf9b3e8 bellard
#endif                                /* _EXEC_SH4_H */