~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to target-arm/exec.h

Tags: upstream-0.9.0+20070816
ImportĀ upstreamĀ versionĀ 0.9.0+20070816

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * License along with this library; if not, write to the Free Software
18
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
 */
 
20
#include "config.h"
20
21
#include "dyngen-exec.h"
21
22
 
22
 
#if defined(__sparc__)
23
 
struct CPUARMState *env;
24
 
uint32_t T0;
25
 
uint32_t T1;
26
 
uint32_t T2;
27
 
#else
28
23
register struct CPUARMState *env asm(AREG0);
29
24
register uint32_t T0 asm(AREG1);
30
25
register uint32_t T1 asm(AREG2);
31
26
register uint32_t T2 asm(AREG3);
32
 
#endif
33
27
 
34
28
/* TODO: Put these in FP regs on targets that have such things.  */
35
29
/* It is ok for FT0s and FT0d to overlap.  Likewise FT1s and FT1d.  */
38
32
#define FT0d env->vfp.tmp0d
39
33
#define FT1d env->vfp.tmp1d
40
34
 
 
35
#define M0   env->iwmmxt.val
 
36
 
41
37
#include "cpu.h"
42
38
#include "exec-all.h"
43
39
 
52
48
int cpu_arm_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
53
49
                              int is_user, int is_softmmu);
54
50
 
 
51
static inline int cpu_halted(CPUState *env) {
 
52
    if (!env->halted)
 
53
        return 0;
 
54
    /* An interrupt wakes the CPU even if the I and F CPSR bits are
 
55
       set.  We use EXITTB to silently wake CPU without causing an
 
56
       actual interrupt.  */
 
57
    if (env->interrupt_request &
 
58
        (CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB)) {
 
59
        env->halted = 0;
 
60
        return 0;
 
61
    }
 
62
    return EXCP_HALTED;
 
63
}
 
64
 
55
65
#if !defined(CONFIG_USER_ONLY)
56
66
#include "softmmu_exec.h"
57
67
#endif
60
70
 
61
71
void cpu_lock(void);
62
72
void cpu_unlock(void);
 
73
void helper_set_cp(CPUState *, uint32_t, uint32_t);
 
74
uint32_t helper_get_cp(CPUState *, uint32_t);
63
75
void helper_set_cp15(CPUState *, uint32_t, uint32_t);
64
76
uint32_t helper_get_cp15(CPUState *, uint32_t);
65
77