Project

General

Profile

Actions

Emulator Issues #7709

closed

Arm32 JIT crashes on Android

Added by SeannyM about 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

As of PR #1070 the Arm32 JIT crashes any game on launch for Android builds. After doing some testing, I have determined that line 105 in JitArm_SystemRegisters.cpp, "STRB(tmp, R9, PPCSTATE_OFF(xer_so_ov));", is what's causing the crash. I may not be the most knowledgeable person when it comes to this, but this line looks fine to me. Removing/commenting out this line allows the JIT to start up without crashing, however of course, it isn't able to run the games; the best you'll get is the yellow text in the top-left corner. Of course, an easy fix to this would be to simply have some more instructions that fall back to the interpreter, however the Arm32 JIT already has enough of that. Since I can't find the issue or even really understand why it's an issue in the first place, I bring my information here for someone else to try and solve. It appears to be an issue with "xer_so_ov", since "xer_ca" seems to work just fine with "STRB(tmp, R9, PPCSTATE_OFF(xer_ca));"

Actions #1

Updated by JMC4789 about 10 years ago

  • Status changed from New to Accepted

#BlameSonicadvance1

Actions #2

Updated by JMC4789 about 10 years ago

Err, forgot to blame him.

Actions #3

Updated by Sonicadvance1 about 10 years ago

It's probably some quirky alignment nonsense happening.
I planned on looking at it before going to California, it's going to have to wait until I get back.

Actions #4

Updated by Sonicadvance1 about 10 years ago

  • Status changed from Accepted to Work started
Actions #5

Updated by Sonicadvance1 about 10 years ago

Should be fixed in 4.0-3577

Actions #6

Updated by SeannyM about 10 years ago

Confirmed fixed ;)

Actions #7

Updated by Sonicadvance1 about 10 years ago

  • Status changed from Work started to Fixed
Actions

Also available in: Atom PDF