Browse Source
ContextKey is not a compiler constant
remotes/1785372757367212240/tmp_refs/heads/variable-page-size
Exverge
4 weeks ago
No known key found for this signature in database
GPG Key ID: DAD399BCC5FB77E4
1 changed files with
1 additions and
6 deletions
-
src/core/arm/nce/arm_nce.cpp
|
|
|
@ -71,12 +71,7 @@ void* ArmNce::GetGuestParameters() { |
|
|
|
: [off] "i"((ContextKey - 1) * 8) |
|
|
|
: "memory"); |
|
|
|
#elif defined(_WIN32)
|
|
|
|
asm volatile( |
|
|
|
"mrs %[out], TPIDR_EL0\n" // load windows TLS storage
|
|
|
|
"ldr %[out], [ %[out], #%[off] ]\n" |
|
|
|
: [out] "=&r"(nep) |
|
|
|
: [off] "i"(TlsSlots + 8 * ContextKey) |
|
|
|
: "memory"); |
|
|
|
nep = TlsGetValue(ContextKey); |
|
|
|
#elif defined(__linux__)
|
|
|
|
asm volatile( |
|
|
|
"mrs %0, TPIDR_EL0\n" |
|
|
|
|