@samitouri / QOSamiQemu / commits / f2a2ccf48f

target/hexagon: Add TCG overrides for transfer insts

Reviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>

Brian Cain committed Jun 22, 2026 at 15:28 UTC f2a2ccf48f1e40c0a74e260fe28251da56eb4f57
1 file changed +25
target/hexagon/gen_tcg_sys.h
+25
@@ -95,6 +95,31 @@
95 gen_helper_stop(tcg_env); \
96 } while (0)
97
98 +#define fGEN_TCG_Y2_tfrscrr(SHORTCODE) \
99 + tcg_gen_mov_tl(RdV, SsV)
100 +
101 +#define fGEN_TCG_Y2_tfrsrcr(SHORTCODE) \
102 + tcg_gen_mov_tl(SdV, RsV)
103 +
104 +#define fGEN_TCG_Y4_tfrscpp(SHORTCODE) \
105 + tcg_gen_mov_i64(RddV, SssV)
106 +
107 +#define fGEN_TCG_Y4_tfrspcp(SHORTCODE) \
108 + tcg_gen_mov_i64(SddV, RssV)
109 +
110 +#define fGEN_TCG_G4_tfrgcrr(SHORTCODE) \
111 + tcg_gen_mov_tl(RdV, GsV)
112 +
113 +#define fGEN_TCG_G4_tfrgrcr(SHORTCODE) \
114 + tcg_gen_mov_tl(GdV, RsV)
115 +
116 +#define fGEN_TCG_G4_tfrgcpp(SHORTCODE) \
117 + tcg_gen_mov_i64(RddV, GssV)
118 +
119 +#define fGEN_TCG_G4_tfrgpcp(SHORTCODE) \
120 + tcg_gen_mov_i64(GddV, RssV)
121 +
122 +
123 /*
124 * rte (return from exception)
125 * Clear the EX bit in SSR