Statistics
| Branch: | Revision:

root / target-sparc / exec.h @ 4f7de373

History | View | Annotate | Download (957 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
void do_interrupt(int intno);
34

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

    
45
#endif