mirror of https://github.com/mgba-emu/mgba.git
Test: Fix no-return register ROM tester usage
This commit is contained in:
parent
5ad8907acb
commit
b8087c1d97
|
@ -236,14 +236,18 @@ static bool _romTestCheckResiger(void) {
|
|||
|
||||
static void _romTestCallback(void* context) {
|
||||
UNUSED(context);
|
||||
if (_returnCodeRegister) {
|
||||
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
||||
}
|
||||
_dispatchExiting = true;
|
||||
}
|
||||
|
||||
#ifdef M_CORE_GBA
|
||||
static void _romTestSwi16(struct ARMCore* cpu, int immediate) {
|
||||
if (immediate == _exitSwiImmediate) {
|
||||
if (_returnCodeRegister) {
|
||||
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
||||
}
|
||||
_dispatchExiting = true;
|
||||
return;
|
||||
}
|
||||
|
@ -252,7 +256,9 @@ static void _romTestSwi16(struct ARMCore* cpu, int immediate) {
|
|||
|
||||
static void _romTestSwi32(struct ARMCore* cpu, int immediate) {
|
||||
if (immediate == _exitSwiImmediate) {
|
||||
if (_returnCodeRegister) {
|
||||
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
||||
}
|
||||
_dispatchExiting = true;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue