Statistics
| Branch: | Revision:

root / target-arm / exec.h @ 36802b6b

History | View | Annotate | Download (1.2 kB)

1 2c0262af bellard
/*
2 2c0262af bellard
 *  ARM execution defines
3 5fafdf24 ths
 *
4 2c0262af bellard
 *  Copyright (c) 2003 Fabrice Bellard
5 2c0262af bellard
 *
6 2c0262af bellard
 * This library is free software; you can redistribute it and/or
7 2c0262af bellard
 * modify it under the terms of the GNU Lesser General Public
8 2c0262af bellard
 * License as published by the Free Software Foundation; either
9 2c0262af bellard
 * version 2 of the License, or (at your option) any later version.
10 2c0262af bellard
 *
11 2c0262af bellard
 * This library is distributed in the hope that it will be useful,
12 2c0262af bellard
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 2c0262af bellard
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 2c0262af bellard
 * Lesser General Public License for more details.
15 2c0262af bellard
 *
16 2c0262af bellard
 * You should have received a copy of the GNU Lesser General Public
17 8167ee88 Blue Swirl
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 2c0262af bellard
 */
19 8294eba1 ths
#include "config.h"
20 2c0262af bellard
#include "dyngen-exec.h"
21 2c0262af bellard
22 2c0262af bellard
register struct CPUARMState *env asm(AREG0);
23 2c0262af bellard
24 18c9b560 balrog
#define M0   env->iwmmxt.val
25 18c9b560 balrog
26 2c0262af bellard
#include "cpu.h"
27 2c0262af bellard
#include "exec-all.h"
28 2c0262af bellard
29 6a4955a8 aliguori
static inline int cpu_has_work(CPUState *env)
30 6a4955a8 aliguori
{
31 6a4955a8 aliguori
    return (env->interrupt_request &
32 6a4955a8 aliguori
            (CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB));
33 6a4955a8 aliguori
}
34 6a4955a8 aliguori
35 b5ff1b31 bellard
#if !defined(CONFIG_USER_ONLY)
36 b5ff1b31 bellard
#include "softmmu_exec.h"
37 b5ff1b31 bellard
#endif
38 b5ff1b31 bellard
39 b7bcbe95 bellard
void raise_exception(int);
40 10eb0cc0 Paolo Bonzini
41 10eb0cc0 Paolo Bonzini
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
42 10eb0cc0 Paolo Bonzini
{
43 10eb0cc0 Paolo Bonzini
    env->regs[15] = tb->pc;
44 10eb0cc0 Paolo Bonzini
}