Statistics
| Branch: | Revision:

root / target-sparc / exec.h @ 7c60cc4b

History | View | Annotate | Download (927 Bytes)

1
#ifndef EXEC_SPARC_H
2
#define EXEC_SPARC_H 1
3
#include "config.h"
4
#include "dyngen-exec.h"
5

    
6
register struct CPUSPARCState *env asm(AREG0);
7
#define REGWPTR env->regwptr
8

    
9
#define FT0 (env->ft0)
10
#define FT1 (env->ft1)
11
#define DT0 (env->dt0)
12
#define DT1 (env->dt1)
13
#define QT0 (env->qt0)
14
#define QT1 (env->qt1)
15

    
16
#include "cpu.h"
17
#include "exec-all.h"
18

    
19
static inline void env_to_regs(void)
20
{
21
#if defined(reg_REGWPTR)
22
    REGWPTR = env->regbase + (env->cwp * 16);
23
    env->regwptr = REGWPTR;
24
#endif
25
}
26

    
27
static inline void regs_to_env(void)
28
{
29
}
30

    
31
int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw,
32
                               int mmu_idx, int is_softmmu);
33

    
34
static inline int cpu_halted(CPUState *env1) {
35
    if (!env1->halted)
36
        return 0;
37
    if ((env1->interrupt_request & CPU_INTERRUPT_HARD) && (env1->psret != 0)) {
38
        env1->halted = 0;
39
        return 0;
40
    }
41
    return EXCP_HALTED;
42
}
43

    
44
#endif