On 29/5/26 23:55, Brian Cain wrote:
From: Brian Cain <[email protected]>

Reviewed-by: Taylor Simpson <[email protected]>
Signed-off-by: Brian Cain <[email protected]>
---
  target/hexagon/helper.h    |  8 ++++++++
  target/hexagon/op_helper.c | 28 ++++++++++++++++++++++++++++
  2 files changed, 36 insertions(+)


diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c
index 53898db815b..359bf12f1f2 100644
--- a/target/hexagon/op_helper.c
+++ b/target/hexagon/op_helper.c
@@ -1373,6 +1373,34 @@ void HELPER(vwhist128qm)(CPUHexagonState *env, int32_t 
uiV)
      }
  }
+#ifndef CONFIG_USER_ONLY

Can be cleaned as a follow up: move to sys_helper.c, keeping op_helper.c
common to user/system without #ifdery?

+void HELPER(sreg_write_masked)(CPUHexagonState *env, uint32_t reg, uint32_t 
val)
+{
+    g_assert_not_reached();
+}
+
+uint32_t HELPER(sreg_read)(CPUHexagonState *env, uint32_t reg)
+{
+    g_assert_not_reached();
+}
+
+uint64_t HELPER(sreg_read_pair)(CPUHexagonState *env, uint32_t reg)
+{
+    g_assert_not_reached();
+}
+
+uint32_t HELPER(greg_read)(CPUHexagonState *env, uint32_t reg)
+{
+    g_assert_not_reached();
+}
+
+uint64_t HELPER(greg_read_pair)(CPUHexagonState *env, uint32_t reg)
+{
+    g_assert_not_reached();
+}
+#endif
+
+
  /* These macros can be referenced in the generated helper functions */
  #define warn(...) /* Nothing */
  #define fatal(...) g_assert_not_reached();


Reply via email to