Statistics
| Branch: | Revision:

root / target-m68k / exec.h @ 5fafdf24

History | View | Annotate | Download (1.8 kB)

1 e6e5906b pbrook
/*
2 e6e5906b pbrook
 *  m68k execution defines
3 5fafdf24 ths
 *
4 e6e5906b pbrook
 *  Copyright (c) 2005-2006 CodeSourcery
5 e6e5906b pbrook
 *  Written by Paul Brook
6 e6e5906b pbrook
 *
7 e6e5906b pbrook
 * This library is free software; you can redistribute it and/or
8 e6e5906b pbrook
 * modify it under the terms of the GNU Lesser General Public
9 e6e5906b pbrook
 * License as published by the Free Software Foundation; either
10 e6e5906b pbrook
 * version 2 of the License, or (at your option) any later version.
11 e6e5906b pbrook
 *
12 e6e5906b pbrook
 * This library is distributed in the hope that it will be useful,
13 e6e5906b pbrook
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 e6e5906b pbrook
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 e6e5906b pbrook
 * General Public License for more details.
16 e6e5906b pbrook
 *
17 e6e5906b pbrook
 * You should have received a copy of the GNU Lesser General Public
18 e6e5906b pbrook
 * License along with this library; if not, write to the Free Software
19 e6e5906b pbrook
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 e6e5906b pbrook
 */
21 e6e5906b pbrook
#include "dyngen-exec.h"
22 e6e5906b pbrook
23 e6e5906b pbrook
register struct CPUM68KState *env asm(AREG0);
24 e6e5906b pbrook
/* This is only used for tb lookup.  */
25 e6e5906b pbrook
register uint32_t T0 asm(AREG1);
26 e6e5906b pbrook
/* ??? We don't use T1, but common code expects it to exist  */
27 e6e5906b pbrook
#define T1 env->t1
28 e6e5906b pbrook
29 e6e5906b pbrook
#include "cpu.h"
30 e6e5906b pbrook
#include "exec-all.h"
31 e6e5906b pbrook
32 e6e5906b pbrook
static inline void env_to_regs(void)
33 e6e5906b pbrook
{
34 e6e5906b pbrook
}
35 e6e5906b pbrook
36 e6e5906b pbrook
static inline void regs_to_env(void)
37 e6e5906b pbrook
{
38 e6e5906b pbrook
}
39 e6e5906b pbrook
40 e6e5906b pbrook
int cpu_m68k_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
41 e6e5906b pbrook
                              int is_user, int is_softmmu);
42 e6e5906b pbrook
43 0633879f pbrook
#if !defined(CONFIG_USER_ONLY)
44 0633879f pbrook
#include "softmmu_exec.h"
45 0633879f pbrook
#endif
46 e6e5906b pbrook
47 e6e5906b pbrook
void cpu_m68k_flush_flags(CPUM68KState *env, int cc_op);
48 e6e5906b pbrook
float64 helper_sub_cmpf64(CPUM68KState *env, float64 src0, float64 src1);
49 0633879f pbrook
void helper_movec(CPUM68KState *env, int reg, uint32_t val);
50 e6e5906b pbrook
51 e6e5906b pbrook
void cpu_loop_exit(void);
52 bfed01fc ths
53 bfed01fc ths
static inline int cpu_halted(CPUState *env) {
54 bfed01fc ths
    if (!env->halted)
55 bfed01fc ths
        return 0;
56 bfed01fc ths
    if (env->interrupt_request & CPU_INTERRUPT_HARD) {
57 bfed01fc ths
        env->halted = 0;
58 bfed01fc ths
        return 0;
59 bfed01fc ths
    }
60 bfed01fc ths
    return EXCP_HALTED;
61 bfed01fc ths
}