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) {
|
static void _romTestCallback(void* context) {
|
||||||
UNUSED(context);
|
UNUSED(context);
|
||||||
|
if (_returnCodeRegister) {
|
||||||
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
||||||
|
}
|
||||||
_dispatchExiting = true;
|
_dispatchExiting = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef M_CORE_GBA
|
#ifdef M_CORE_GBA
|
||||||
static void _romTestSwi16(struct ARMCore* cpu, int immediate) {
|
static void _romTestSwi16(struct ARMCore* cpu, int immediate) {
|
||||||
if (immediate == _exitSwiImmediate) {
|
if (immediate == _exitSwiImmediate) {
|
||||||
|
if (_returnCodeRegister) {
|
||||||
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
||||||
|
}
|
||||||
_dispatchExiting = true;
|
_dispatchExiting = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -252,7 +256,9 @@ static void _romTestSwi16(struct ARMCore* cpu, int immediate) {
|
||||||
|
|
||||||
static void _romTestSwi32(struct ARMCore* cpu, int immediate) {
|
static void _romTestSwi32(struct ARMCore* cpu, int immediate) {
|
||||||
if (immediate == _exitSwiImmediate) {
|
if (immediate == _exitSwiImmediate) {
|
||||||
|
if (_returnCodeRegister) {
|
||||||
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
core->readRegister(core, _returnCodeRegister, &_exitCode);
|
||||||
|
}
|
||||||
_dispatchExiting = true;
|
_dispatchExiting = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue