target/hexagon: Add placeholder greg/sreg r/w helpers
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
b7f4346388166c1265ec1fbda93dc8ff7e56f69b
2 files changed
+36
target/hexagon/helper.h
+8
@@ -107,3 +107,11 @@ DEF_HELPER_4(probe_noshuf_load, void, env, i32, int, int)
107
DEF_HELPER_2(probe_pkt_scalar_store_s0, void, env, int)
108
DEF_HELPER_2(probe_hvx_stores, void, env, int)
109
DEF_HELPER_2(probe_pkt_scalar_hvx_stores, void, env, int)
110
+
111
+#if !defined(CONFIG_USER_ONLY)
112
+DEF_HELPER_2(sreg_read, i32, env, i32)
113
+DEF_HELPER_2(sreg_read_pair, i64, env, i32)
114
+DEF_HELPER_2(greg_read, i32, env, i32)
115
+DEF_HELPER_2(greg_read_pair, i64, env, i32)
116
+DEF_HELPER_3(sreg_write_masked, void, env, i32, i32)
117
+#endif
target/hexagon/op_helper.c
+28
@@ -1374,6 +1374,34 @@ void HELPER(vwhist128qm)(CPUHexagonState *env, int32_t uiV)
1374
}
1375
}
1376
1377
+#ifndef CONFIG_USER_ONLY
1378
+void HELPER(sreg_write_masked)(CPUHexagonState *env, uint32_t reg, uint32_t val)
1379
+{
1380
+ g_assert_not_reached();
1381
+}
1382
+
1383
+uint32_t HELPER(sreg_read)(CPUHexagonState *env, uint32_t reg)
1384
+{
1385
+ g_assert_not_reached();
1386
+}
1387
+
1388
+uint64_t HELPER(sreg_read_pair)(CPUHexagonState *env, uint32_t reg)
1389
+{
1390
+ g_assert_not_reached();
1391
+}
1392
+
1393
+uint32_t HELPER(greg_read)(CPUHexagonState *env, uint32_t reg)
1394
+{
1395
+ g_assert_not_reached();
1396
+}
1397
+
1398
+uint64_t HELPER(greg_read_pair)(CPUHexagonState *env, uint32_t reg)
1399
+{
1400
+ g_assert_not_reached();
1401
+}
1402
+#endif
1403
+
1404
+
1405
/* These macros can be referenced in the generated helper functions */
1406
#define warn(...) /* Nothing */
1407
#define fatal(...) g_assert_not_reached();