root / target-arm / exec.h @ d3c61721
History | View | Annotate | Download (1.3 kB)
1 | 2c0262af | bellard | /*
|
---|---|---|---|
2 | 2c0262af | bellard | * ARM execution defines
|
3 | 2c0262af | bellard | *
|
4 | 2c0262af | bellard | * Copyright (c) 2003 Fabrice Bellard
|
5 | 2c0262af | bellard | *
|
6 | 2c0262af | bellard | * This library is free software; you can redistribute it and/or
|
7 | 2c0262af | bellard | * modify it under the terms of the GNU Lesser General Public
|
8 | 2c0262af | bellard | * License as published by the Free Software Foundation; either
|
9 | 2c0262af | bellard | * version 2 of the License, or (at your option) any later version.
|
10 | 2c0262af | bellard | *
|
11 | 2c0262af | bellard | * This library is distributed in the hope that it will be useful,
|
12 | 2c0262af | bellard | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 2c0262af | bellard | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | 2c0262af | bellard | * Lesser General Public License for more details.
|
15 | 2c0262af | bellard | *
|
16 | 2c0262af | bellard | * You should have received a copy of the GNU Lesser General Public
|
17 | 2c0262af | bellard | * License along with this library; if not, write to the Free Software
|
18 | 2c0262af | bellard | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 | 2c0262af | bellard | */
|
20 | 2c0262af | bellard | #include "dyngen-exec.h" |
21 | 2c0262af | bellard | |
22 | 2c0262af | bellard | register struct CPUARMState *env asm(AREG0); |
23 | 2c0262af | bellard | register uint32_t T0 asm(AREG1); |
24 | 2c0262af | bellard | register uint32_t T1 asm(AREG2); |
25 | 2c0262af | bellard | register uint32_t T2 asm(AREG3); |
26 | 2c0262af | bellard | |
27 | 2c0262af | bellard | #include "cpu.h" |
28 | 2c0262af | bellard | #include "exec-all.h" |
29 | 2c0262af | bellard | |
30 | 2c0262af | bellard | void cpu_lock(void); |
31 | 2c0262af | bellard | void cpu_unlock(void); |
32 | 2c0262af | bellard | void cpu_loop_exit(void); |
33 | 2c0262af | bellard | |
34 | 2c0262af | bellard | static inline int compute_cpsr(void) |
35 | 2c0262af | bellard | { |
36 | 2c0262af | bellard | int ZF;
|
37 | 2c0262af | bellard | ZF = (env->NZF == 0);
|
38 | 2c0262af | bellard | return env->cpsr | (env->NZF & 0x80000000) | (ZF << 30) | |
39 | 2c0262af | bellard | (env->CF << 29) | ((env->VF & 0x80000000) >> 3); |
40 | 2c0262af | bellard | } |
41 | 0d1a29f9 | bellard | |
42 | 0d1a29f9 | bellard | static inline void env_to_regs(void) |
43 | 0d1a29f9 | bellard | { |
44 | 0d1a29f9 | bellard | } |
45 | 0d1a29f9 | bellard | |
46 | 0d1a29f9 | bellard | static inline void regs_to_env(void) |
47 | 0d1a29f9 | bellard | { |
48 | 0d1a29f9 | bellard | } |