1 #ifndef TARGET_ARM_TRANSLATE_H
2 #define TARGET_ARM_TRANSLATE_H
5 typedef struct DisasContext
{
9 /* Nonzero if this instruction has been conditionally skipped. */
11 /* The label that will be jumped to when the instruction is skipped. */
13 /* Thumb-2 conditional execution bits. */
16 struct TranslationBlock
*tb
;
17 int singlestep_enabled
;
20 #if !defined(CONFIG_USER_ONLY)
29 uint64_t features
; /* CPU features bits */
30 #define TMP_A64_MAX 16
32 TCGv_i64 tmp_a64
[TMP_A64_MAX
];
35 extern TCGv_ptr cpu_env
;
37 static inline int arm_dc_feature(DisasContext
*dc
, int feature
)
39 return (dc
->features
& (1ULL << feature
)) != 0;
42 /* target-specific extra values for is_jmp */
43 /* These instructions trap after executing, so the A32/T32 decoder must
44 * defer them until after the conditional execution state has been updated.
45 * WFI also needs special handling when single-stepping.
49 /* For instructions which unconditionally cause an exception we can skip
50 * emitting unreachable code at the end of the TB in the A64 decoder
57 void a64_translate_init(void);
58 void gen_intermediate_code_internal_a64(ARMCPU
*cpu
,
61 void gen_a64_set_pc_im(uint64_t val
);
63 static inline void a64_translate_init(void)
67 static inline void gen_intermediate_code_internal_a64(ARMCPU
*cpu
,
73 static inline void gen_a64_set_pc_im(uint64_t val
)
78 void arm_gen_test_cc(int cc
, int label
);
80 #endif /* TARGET_ARM_TRANSLATE_H */