2003-10-01 00:36:07 +04:00
|
|
|
#ifndef EXEC_SPARC_H
|
|
|
|
#define EXEC_SPARC_H 1
|
2005-07-02 18:31:34 +04:00
|
|
|
#include "config.h"
|
2007-03-19 17:47:40 +03:00
|
|
|
#include "dyngen-exec.h"
|
2003-10-01 00:36:07 +04:00
|
|
|
|
|
|
|
register struct CPUSPARCState *env asm(AREG0);
|
2005-07-02 18:31:34 +04:00
|
|
|
|
2004-10-01 01:55:55 +04:00
|
|
|
#define FT0 (env->ft0)
|
|
|
|
#define FT1 (env->ft1)
|
|
|
|
#define DT0 (env->dt0)
|
|
|
|
#define DT1 (env->dt1)
|
2007-11-25 21:40:20 +03:00
|
|
|
#define QT0 (env->qt0)
|
|
|
|
#define QT1 (env->qt1)
|
2003-10-01 00:36:07 +04:00
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "exec-all.h"
|
|
|
|
|
2004-10-13 02:01:28 +04:00
|
|
|
static inline void env_to_regs(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void regs_to_env(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-05-10 14:12:00 +04:00
|
|
|
int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw,
|
2007-10-14 11:07:08 +04:00
|
|
|
int mmu_idx, int is_softmmu);
|
2008-05-27 21:35:30 +04:00
|
|
|
void do_interrupt(CPUState *env);
|
2005-02-08 02:10:53 +03:00
|
|
|
|
2008-05-10 14:12:00 +04:00
|
|
|
static inline int cpu_halted(CPUState *env1) {
|
|
|
|
if (!env1->halted)
|
2007-06-03 21:44:37 +04:00
|
|
|
return 0;
|
2008-05-10 14:12:00 +04:00
|
|
|
if ((env1->interrupt_request & CPU_INTERRUPT_HARD) && (env1->psret != 0)) {
|
|
|
|
env1->halted = 0;
|
2007-06-03 21:44:37 +04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return EXCP_HALTED;
|
|
|
|
}
|
|
|
|
|
2003-10-01 00:36:07 +04:00
|
|
|
#endif
|