Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Brown <morganbr@users.noreply.github.com>2017-12-05 09:45:38 +0300
committerGitHub <noreply@github.com>2017-12-05 09:45:38 +0300
commit3d25db5b1c010346bbc480a20646c80ea413492f (patch)
treee49e79d7ef6cd6861dd54d6db5262dfce216e695 /src/Native/Runtime/PalRedhawkCommon.h
parentc900f3d03df888df2271cc7e207cdc645ae94aa2 (diff)
Build runtime and libraries for WebAssembly (#4876)
* Fix issues building the runtime, corelib and type loader for WebAssembly * Fix test infrastructure to allow running with the wasm flavor
Diffstat (limited to 'src/Native/Runtime/PalRedhawkCommon.h')
-rw-r--r--src/Native/Runtime/PalRedhawkCommon.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Native/Runtime/PalRedhawkCommon.h b/src/Native/Runtime/PalRedhawkCommon.h
index 695732b37..3f452135e 100644
--- a/src/Native/Runtime/PalRedhawkCommon.h
+++ b/src/Native/Runtime/PalRedhawkCommon.h
@@ -112,7 +112,7 @@ struct PAL_LIMITED_CONTEXT
void SetIp(UIntNative ip) { IP = ip; }
void SetSp(UIntNative sp) { Rsp = sp; }
UIntNative GetFp() const { return Rbp; }
-#else // _TARGET_ARM_
+#elif defined(_TARGET_X86_) || defined(_TARGET_AMD64_)
UIntNative IP;
UIntNative Rsp;
UIntNative Rbp;
@@ -143,6 +143,14 @@ struct PAL_LIMITED_CONTEXT
UIntNative GetFp() const { return Rbp; }
void SetIp(UIntNative ip) { IP = ip; }
void SetSp(UIntNative sp) { Rsp = sp; }
+#else // _TARGET_ARM_
+ UIntNative IP;
+
+ UIntNative GetIp() const { PORTABILITY_ASSERT("GetIp"); return 0; }
+ UIntNative GetSp() const { PORTABILITY_ASSERT("GetSp"); return 0; }
+ UIntNative GetFp() const { PORTABILITY_ASSERT("GetFp"); return 0; }
+ void SetIp(UIntNative ip) { PORTABILITY_ASSERT("SetIp"); }
+ void SetSp(UIntNative sp) { PORTABILITY_ASSERT("GetSp"); }
#endif // _TARGET_ARM_
};