diff options
author | Nebuleon <nebuleon@alakazam> | 2013-08-22 23:54:08 +0000 |
---|---|---|
committer | Nebuleon <nebuleon@alakazam> | 2013-08-22 23:54:08 +0000 |
commit | 16b526c271c4c274bcbcfe3b54a0023cbb8547cb (patch) | |
tree | b1e65a3fc6f702a264d0b1e3c2aee51beabedfd0 /source/cpu_asm.c | |
parent | 985f8a8baf59e6cbe85f2a5edf77a3c60136eae9 (diff) | |
download | ReGBA-16b526c271c4c274bcbcfe3b54a0023cbb8547cb.zip ReGBA-16b526c271c4c274bcbcfe3b54a0023cbb8547cb.tar.gz ReGBA-16b526c271c4c274bcbcfe3b54a0023cbb8547cb.tar.bz2 |
cpu_asm.c: Do not use gpsp_persistent_config, which is a DSTwo port variable, when deciding whether to boot from the BIOS.
Diffstat (limited to 'source/cpu_asm.c')
-rw-r--r-- | source/cpu_asm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cpu_asm.c b/source/cpu_asm.c index 6199a6b..e23ecd6 100644 --- a/source/cpu_asm.c +++ b/source/cpu_asm.c @@ -3854,7 +3854,7 @@ void dump_translation_cache() printf("RO:%08X R/W:%08X\n", readonly_next_code - readonly_code_cache, writable_next_code - writable_code_cache); } -void init_cpu() +void init_cpu(u32 BootFromBIOS) { u32 i; @@ -3864,7 +3864,7 @@ void init_cpu() } reg[REG_SP] = 0x03007F00; - reg[REG_PC] = gpsp_persistent_config.BootFromBIOS + reg[REG_PC] = BootFromBIOS ? 0x00000000 : 0x08000000; reg[REG_CPSR] = 0x0000001F; |