You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then make sure to save and restore fs/gs in the hostrunner.
This will let our unittests use wrfsbase without breaking host TLS, since it can be restored.
Example for just fs, but should include gs also:
diff --git a/Source/Tools/TestHarnessRunner/TestHarnessRunner/HostRunner.cpp b/Source/Tools/TestHarnessRunner/TestHarnessRunner/HostRunner.cpp
index 0e9b88cca..9a816ccac 100644
--- a/Source/Tools/TestHarnessRunner/TestHarnessRunner/HostRunner.cpp+++ b/Source/Tools/TestHarnessRunner/TestHarnessRunner/HostRunner.cpp@@ -51,7 +51,8 @@ public:
push(r13);
push(r14);
push(r15);
- sub(rsp, 8);+ rdfsbase(rbx);+ push(rbx);
// Save this stack pointer so we can cleanly shutdown the emulation with a long jump
// regardless of where we were in the stack
@@ -103,8 +104,8 @@ public:
ThreadStopHandlerAddress = getCurr<uint64_t>();
- add(rsp, 8);-+ pop(rbx);+ wrfsbase(rbx);
pop(r15);
pop(r14);
The text was updated successfully, but these errors were encountered:
Once herumi/xbyak#193 is merged, rebase xbyak on latest.
Then make sure to save and restore fs/gs in the hostrunner.
This will let our unittests use wrfsbase without breaking host TLS, since it can be restored.
Example for just fs, but should include gs also:
The text was updated successfully, but these errors were encountered: