On 27/2/26 21:36, Brian Cain wrote:
From: Brian Cain <[email protected]>
Reviewed-by: Taylor Simpson <[email protected]>
Signed-off-by: Brian Cain <[email protected]>
---
target/hexagon/cpu.h | 7 +++++++
target/hexagon/cpu.c | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h
index 3619eaa1a52..057a5f20a67 100644
--- a/target/hexagon/cpu.h
+++ b/target/hexagon/cpu.h
@@ -97,6 +97,13 @@ typedef struct CPUArchState {
target_ulong stack_start;
uint8_t slot_cancelled;
+
+#ifndef CONFIG_USER_ONLY
+ /* Some system registers are per thread and some are global. */
+ target_ulong t_sreg[NUM_SREGS];
+
+ target_ulong greg[NUM_GREGS];
Please do not add more target_ulong uses. Hexagon register size
is 32-bit, so use uint32_t for unsigned register type.