On 3/19/2025 1:36 PM, [email protected] wrote:

-----Original Message-----
From: Brian Cain <[email protected]>
Sent: Friday, February 28, 2025 11:29 PM
To: [email protected]
Cc: [email protected]; [email protected];
[email protected]; [email protected]; [email protected]; [email protected];
[email protected]; [email protected];
[email protected]; [email protected];
[email protected]
Subject: [PATCH 38/39] target/hexagon: Add guest reg reading functionality

From: Matheus Tavares Bernardino <[email protected]>

Signed-off-by: Matheus Tavares Bernardino <[email protected]>
---
  target/hexagon/cpu.c       | 19 ++++++++++++++++++-
  target/hexagon/op_helper.c | 19 +++++++++++++++++--
  2 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index
3c4776232e..80f5e23794 100644
--- a/target/hexagon/cpu.c
+++ b/target/hexagon/cpu.c
@@ -739,7 +739,24 @@ static void hexagon_cpu_class_init(ObjectClass *c,
void *data)  #ifndef CONFIG_USER_ONLY  uint32_t
hexagon_greg_read(CPUHexagonState *env, uint32_t reg)  {
-    g_assert_not_reached();
+    target_ulong ssr = arch_get_system_reg(env, HEX_SREG_SSR);
+    int ssr_ce = GET_SSR_FIELD(SSR_CE, ssr);
Consider moving this check into hexagon_get_sys_pcycle_count*
Ok, will fix this in v3.
Otherwise
Reviewed-by: Taylor Simpson <[email protected]>



Reply via email to