]> Git Repo - qemu.git/blob - target-arm/translate.h
Merge remote-tracking branch 'pmaydell/tags/pull-target-arm-20131217' into staging
[qemu.git] / target-arm / translate.h
1 #ifndef TARGET_ARM_TRANSLATE_H
2 #define TARGET_ARM_TRANSLATE_H
3
4 /* internal defines */
5 typedef struct DisasContext {
6     target_ulong pc;
7     uint32_t insn;
8     int is_jmp;
9     /* Nonzero if this instruction has been conditionally skipped.  */
10     int condjmp;
11     /* The label that will be jumped to when the instruction is skipped.  */
12     int condlabel;
13     /* Thumb-2 conditional execution bits.  */
14     int condexec_mask;
15     int condexec_cond;
16     struct TranslationBlock *tb;
17     int singlestep_enabled;
18     int thumb;
19     int bswap_code;
20 #if !defined(CONFIG_USER_ONLY)
21     int user;
22 #endif
23     int vfp_enabled;
24     int vec_len;
25     int vec_stride;
26     int aarch64;
27 #define TMP_A64_MAX 16
28     int tmp_a64_count;
29     TCGv_i64 tmp_a64[TMP_A64_MAX];
30 } DisasContext;
31
32 extern TCGv_ptr cpu_env;
33
34 /* target-specific extra values for is_jmp */
35 /* These instructions trap after executing, so the A32/T32 decoder must
36  * defer them until after the conditional execution state has been updated.
37  * WFI also needs special handling when single-stepping.
38  */
39 #define DISAS_WFI 4
40 #define DISAS_SWI 5
41 /* For instructions which unconditionally cause an exception we can skip
42  * emitting unreachable code at the end of the TB in the A64 decoder
43  */
44 #define DISAS_EXC 6
45
46 #ifdef TARGET_AARCH64
47 void a64_translate_init(void);
48 void gen_intermediate_code_internal_a64(ARMCPU *cpu,
49                                         TranslationBlock *tb,
50                                         bool search_pc);
51 void gen_a64_set_pc_im(uint64_t val);
52 #else
53 static inline void a64_translate_init(void)
54 {
55 }
56
57 static inline void gen_intermediate_code_internal_a64(ARMCPU *cpu,
58                                                       TranslationBlock *tb,
59                                                       bool search_pc)
60 {
61 }
62
63 static inline void gen_a64_set_pc_im(uint64_t val)
64 {
65 }
66 #endif
67
68 void arm_gen_test_cc(int cc, int label);
69
70 #endif /* TARGET_ARM_TRANSLATE_H */
This page took 0.024374 seconds and 4 git commands to generate.