diff options
author | David Guillen Fandos | 2021-02-15 21:51:49 +0100 |
---|---|---|
committer | David Guillen Fandos | 2021-02-15 21:51:49 +0100 |
commit | ed3ba2c18b8256372cbdd8c86df8073beebb9a18 (patch) | |
tree | f80b8883d2fce7da3ea7f55ae98f26922af63ca3 /psp | |
parent | fa7405450831876b410c1445310456d9b4953165 (diff) | |
download | picogpsp-ed3ba2c18b8256372cbdd8c86df8073beebb9a18.tar.gz picogpsp-ed3ba2c18b8256372cbdd8c86df8073beebb9a18.tar.bz2 picogpsp-ed3ba2c18b8256372cbdd8c86df8073beebb9a18.zip |
More cleanups (mostly whitespace and unused stuff)
Diffstat (limited to 'psp')
-rw-r--r-- | psp/mips_stub.S | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/psp/mips_stub.S b/psp/mips_stub.S index d3324c1..7ca985c 100644 --- a/psp/mips_stub.S +++ b/psp/mips_stub.S @@ -2807,31 +2807,6 @@ ext_store_u32a_jtable: .long ext_store_ignore # 0x0D EEPROM (nothing will write this) .long ext_store_ignore # 0x0E Flash ROM/SRAM -ext_aligned_store32: - srl $1, $4, 24 # $1 = address >> 24 - sltu $2, $1, 16 # check if the value is out of range - beq $2, $0, ext_store_ignore - sll $1, $1, 2 # make address word indexed (delay) - lui $2, %hi(ext_store_u32a_jtable) - addu $2, $2, $1 - # $2 = ext_store_u32a_jtable[address >> 24] - lw $2, %lo(ext_store_u32a_jtable)($2) - jr $2 # jump to table location - nop - -#execute_aligned_store32: - srl $2, $4, 28 # check if the address is out of range - bne $2, $0, ext_aligned_store32 # if it is, perform an extended load - srl $1, $4, 15 # $1 = page number of address - sll $1, $1, 2 # adjust to word index - addu $1, $1, $16 # $1 = memory_map_write[address >> 15] - lw $1, 256($1) - beq $1, $0, ext_aligned_store32 # if it's NULL perform an extended write - andi $2, $4, 0x7FFF # $2 = low 15bits of address (delay slot) - addu $1, $1, $2 # add the memory map offset - jr $ra # return - sw $5, ($1) # write the value - smc_write: save_registers jal flush_translation_cache_ram # flush translation cache |