Browse Source

ContextKey is not a compiler constant

remotes/1785372757367212240/tmp_refs/heads/variable-page-size
Exverge 4 weeks ago
parent
commit
27e16c3d95
No known key found for this signature in database GPG Key ID: DAD399BCC5FB77E4
  1. 7
      src/core/arm/nce/arm_nce.cpp

7
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"

Loading…
Cancel
Save