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)
27 #define TMP_A64_MAX 16
29 TCGv_i64 tmp_a64[TMP_A64_MAX];
32 extern TCGv_ptr cpu_env;
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.
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
47 void a64_translate_init(void);
48 void gen_intermediate_code_internal_a64(ARMCPU *cpu,
51 void gen_a64_set_pc_im(uint64_t val);
53 static inline void a64_translate_init(void)
57 static inline void gen_intermediate_code_internal_a64(ARMCPU *cpu,
63 static inline void gen_a64_set_pc_im(uint64_t val)
68 void arm_gen_test_cc(int cc, int label);
70 #endif /* TARGET_ARM_TRANSLATE_H */