mirror of
https://github.com/corda/corda.git
synced 2025-02-02 01:08:09 +00:00
fix x86_64 build
This commit is contained in:
parent
89a2739165
commit
8ac6fb9d75
75
src/x86.h
75
src/x86.h
@ -41,42 +41,6 @@ vmNativeCall(void* function, void* stack, unsigned stackSize,
|
|||||||
|
|
||||||
namespace vm {
|
namespace vm {
|
||||||
|
|
||||||
inline void
|
|
||||||
trap()
|
|
||||||
{
|
|
||||||
asm("int3");
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void
|
|
||||||
memoryBarrier()
|
|
||||||
{
|
|
||||||
__asm__ __volatile__("": : :"memory");
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void
|
|
||||||
storeStoreMemoryBarrier()
|
|
||||||
{
|
|
||||||
memoryBarrier();
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void
|
|
||||||
storeLoadMemoryBarrier()
|
|
||||||
{
|
|
||||||
memoryBarrier();
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void
|
|
||||||
loadMemoryBarrier()
|
|
||||||
{
|
|
||||||
memoryBarrier();
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void
|
|
||||||
syncInstructionCache(const void*, unsigned)
|
|
||||||
{
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
|
|
||||||
inline uint64_t
|
inline uint64_t
|
||||||
dynamicCall(void* function, uintptr_t* arguments, uint8_t*,
|
dynamicCall(void* function, uintptr_t* arguments, uint8_t*,
|
||||||
unsigned, unsigned argumentsSize, unsigned returnType)
|
unsigned, unsigned argumentsSize, unsigned returnType)
|
||||||
@ -146,5 +110,44 @@ dynamicCall(void* function, uint64_t* arguments, uint8_t* argumentTypes,
|
|||||||
# error unsupported architecture
|
# error unsupported architecture
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace vm {
|
||||||
|
|
||||||
|
inline void
|
||||||
|
trap()
|
||||||
|
{
|
||||||
|
asm("int3");
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void
|
||||||
|
memoryBarrier()
|
||||||
|
{
|
||||||
|
__asm__ __volatile__("": : :"memory");
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void
|
||||||
|
storeStoreMemoryBarrier()
|
||||||
|
{
|
||||||
|
memoryBarrier();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void
|
||||||
|
storeLoadMemoryBarrier()
|
||||||
|
{
|
||||||
|
memoryBarrier();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void
|
||||||
|
loadMemoryBarrier()
|
||||||
|
{
|
||||||
|
memoryBarrier();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void
|
||||||
|
syncInstructionCache(const void*, unsigned)
|
||||||
|
{
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace vm
|
||||||
|
|
||||||
#endif//X86_H
|
#endif//X86_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user