Skip to content

Fix illegal instruction crash on some ARM systems#202

Merged
tevador merged 1 commit intotevador:masterfrom
SChernykh:fix-crash
May 22, 2021
Merged

Fix illegal instruction crash on some ARM systems#202
tevador merged 1 commit intotevador:masterfrom
SChernykh:fix-crash

Conversation

@SChernykh
Copy link
Collaborator

@SChernykh
Copy link
Collaborator Author

@tevador Can you merge this?

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