On 9/13/26 05:59, Brian Cain wrote:
+++ b/linux-user/main.c
@@ -244,6 +244,9 @@ CPUArchState *cpu_copy(CPUArchState *env)
new_cpu->tcg_cflags = cpu->tcg_cflags;
memcpy(new_env, env, sizeof(CPUArchState));
+#if defined(TARGET_HEXAGON)
+ HEXAGON_CPU(new_cpu)->hvx_ctx = HEXAGON_CPU(cpu)->hvx_ctx;
+#endif
#if defined(TARGET_I386) || defined(TARGET_X86_64)
new_env->gdt.base = target_mmap(0, sizeof(uint64_t) * TARGET_GDT_ENTRIES,
PROT_READ | PROT_WRITE,
Why did you put the context in the greater "cpu" structure instead of
"env"? It would have avoided this oddity...
Otherwise,
Reviewed-by: Richard Henderson <[email protected]>
r~