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 #define TMP_A64_MAX 16
31 TCGv_i64 tmp_a64[TMP_A64_MAX];
34 extern TCGv_ptr cpu_env;
36 /* target-specific extra values for is_jmp */
37 /* These instructions trap after executing, so the A32/T32 decoder must
38 * defer them until after the conditional execution state has been updated.
39 * WFI also needs special handling when single-stepping.
43 /* For instructions which unconditionally cause an exception we can skip
44 * emitting unreachable code at the end of the TB in the A64 decoder
49 void a64_translate_init(void);
50 void gen_intermediate_code_internal_a64(ARMCPU *cpu,
53 void gen_a64_set_pc_im(uint64_t val);
55 static inline void a64_translate_init(void)
59 static inline void gen_intermediate_code_internal_a64(ARMCPU *cpu,
65 static inline void gen_a64_set_pc_im(uint64_t val)
70 void arm_gen_test_cc(int cc, int label);
72 #endif /* TARGET_ARM_TRANSLATE_H */