2 * UniCore32 execution defines
4 * Copyright (C) 2010-2011 GUAN Xue-tao
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #ifndef __UC32_EXEC_H__
11 #define __UC32_EXEC_H__
14 #include "dyngen-exec.h"
16 register struct CPUState_UniCore32
*env
asm(AREG0
);
20 static inline void env_to_regs(void)
24 static inline void regs_to_env(void)
28 static inline int cpu_halted(CPUState
*env
)
33 /* An interrupt wakes the CPU even if the I and R ASR bits are
34 set. We use EXITTB to silently wake CPU without causing an
36 if (cpu_has_work(env
)) {
43 #endif /* __UC32_EXEC_H__ */