summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/extra-patch-c13_tls2
blob: fca58f546c57d44d6f1b4ab6f3218641c7d6285e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/bsd-user/arm/target_arch_cpu.c
+++ b/bsd-user/arm/target_arch_cpu.c
@@ -18,10 +18,10 @@
 
 void target_cpu_set_tls(CPUARMState *env, target_ulong newtls)
 {
-    env->cp15.c13_tls2 = newtls;
+    env->cp15.tpidrro_el0 = newtls;
 }
 
 target_ulong target_cpu_get_tls(CPUARMState *env)
 {
-    return (env->cp15.c13_tls2);
+    return (env->cp15.tpidrro_el0);
 }