Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix illegal instruction crash on some ARM systems #202

Merged
merged 1 commit into from
May 22, 2021

Conversation

SChernykh
Copy link
Collaborator

@SChernykh
Copy link
Collaborator Author

@tevador Can you merge this?

@@ -95,6 +95,10 @@ JitCompilerA64::JitCompilerA64()
{
memset(reg_changed_offset, 0, sizeof(reg_changed_offset));
memcpy(code, (void*) randomx_program_aarch64, CodeSize);

#ifdef __GNUC__
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really gcc-specific? The Android SDK uses clang, will this work there, or is some other fix needed for an Android build?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a GCC-specific builtin, but clang supports it and even defines __GNUC__. Also, the same #ifdef is used in other places here.

@Edan3blov
Copy link

Hello,

This code was added and compiled but still mining crashs on smarphones.

If JIT is disabled mining works but without JIT there is no serius mining.

@tevador tevador merged commit 4aae0d8 into tevador:master May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants