Statistics
| Branch: | Revision:

root / target-cris / exec.h @ 00a152b4

History | View | Annotate | Download (1.2 kB)

1 81fdc5f8 ths
/*
2 81fdc5f8 ths
 *  CRIS execution defines
3 81fdc5f8 ths
 *
4 81fdc5f8 ths
 *  Copyright (c) 2007 AXIS Communications AB
5 81fdc5f8 ths
 *  Written by Edgar E. Iglesias
6 81fdc5f8 ths
 *
7 81fdc5f8 ths
 * This library is free software; you can redistribute it and/or
8 81fdc5f8 ths
 * modify it under the terms of the GNU Lesser General Public
9 81fdc5f8 ths
 * License as published by the Free Software Foundation; either
10 81fdc5f8 ths
 * version 2 of the License, or (at your option) any later version.
11 81fdc5f8 ths
 *
12 81fdc5f8 ths
 * This library is distributed in the hope that it will be useful,
13 81fdc5f8 ths
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 81fdc5f8 ths
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 81fdc5f8 ths
 * General Public License for more details.
16 81fdc5f8 ths
 *
17 81fdc5f8 ths
 * You should have received a copy of the GNU Lesser General Public
18 8167ee88 Blue Swirl
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 81fdc5f8 ths
 */
20 81fdc5f8 ths
#include "dyngen-exec.h"
21 81fdc5f8 ths
22 81fdc5f8 ths
register struct CPUCRISState *env asm(AREG0);
23 31c18d87 edgar_igl
24 81fdc5f8 ths
#include "cpu.h"
25 81fdc5f8 ths
#include "exec-all.h"
26 81fdc5f8 ths
27 81fdc5f8 ths
#if !defined(CONFIG_USER_ONLY)
28 81fdc5f8 ths
#include "softmmu_exec.h"
29 81fdc5f8 ths
#endif
30 81fdc5f8 ths
31 6a4955a8 aliguori
static inline int cpu_has_work(CPUState *env)
32 6a4955a8 aliguori
{
33 6a4955a8 aliguori
    return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI));
34 6a4955a8 aliguori
}
35 6a4955a8 aliguori
36 10eb0cc0 Paolo Bonzini
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
37 10eb0cc0 Paolo Bonzini
{
38 10eb0cc0 Paolo Bonzini
    env->pc = tb->pc;
39 10eb0cc0 Paolo Bonzini
}