-
Notifications
You must be signed in to change notification settings - Fork 30
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
BL writes the target PC address to LR instead of the actual return address #3
Comments
Hi @bobbirrer , Thank you for flagging this up We are trying to reproduce this issue on our side. Please can you give us more details and examples of the test cases you used for the issues? Thanks. |
I used the following test code. The program loops infinitely in SUM.
|
Hi @bobbirrer . Thanks, we will be looking into this. |
@franciscatan-armedu - Unfortunately I cannot build the tool. However, I think if you switch lines 876 and 877 of /LEGv8_Simulator/src/com/arm/legv8simulator/client/cpu/CPU.java it should resolve the issue. Change:
To:
|
Is there an ETC on when this bug might be fixed? |
@bobbirrer if you are still interested in knowing how to build this project and make the changes yourself I have uploaded a tutorial in this pull request #7 |
It appears that rather than writing PC +4 to the LR, the tool instead writes the address of the function to LR. This causes functions to loop endless rather than returning.
The text was updated successfully, but these errors were encountered: