root / target-m68k / exec.h @ 59d94130
History | View | Annotate | Download (1.6 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 | fad6cb1a | aurel32 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 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 | 6ebbf390 | j_mayer | int mmu_idx, 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 | bfed01fc | ths | static inline int cpu_halted(CPUState *env) { |
48 | bfed01fc | ths | if (!env->halted)
|
49 | bfed01fc | ths | return 0; |
50 | bfed01fc | ths | if (env->interrupt_request & CPU_INTERRUPT_HARD) {
|
51 | bfed01fc | ths | env->halted = 0;
|
52 | bfed01fc | ths | return 0; |
53 | bfed01fc | ths | } |
54 | bfed01fc | ths | return EXCP_HALTED;
|
55 | bfed01fc | ths | } |