dyncom: General cleanup of STM
This commit is contained in:
		
							parent
							
								
									e37425b380
								
							
						
					
					
						commit
						36dab56c31
					
				@ -5989,23 +5989,21 @@ unsigned InterpreterMainLoop(ARMul_State* state) {
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                if (BIT(inst_cream->inst, 13)) {
 | 
			
		||||
                    if (cpu->Mode == USER32MODE) {
 | 
			
		||||
                    if (cpu->Mode == USER32MODE)
 | 
			
		||||
                        Memory::Write32(addr, cpu->Reg[i]);
 | 
			
		||||
                        addr += 4;
 | 
			
		||||
                    } else {
 | 
			
		||||
                    else
 | 
			
		||||
                        Memory::Write32(addr, cpu->Reg_usr[0]);
 | 
			
		||||
 | 
			
		||||
                    addr += 4;
 | 
			
		||||
                }
 | 
			
		||||
                }
 | 
			
		||||
                if (BIT(inst_cream->inst, 14)) {
 | 
			
		||||
                    if (cpu->Mode == USER32MODE) {
 | 
			
		||||
                    if (cpu->Mode == USER32MODE)
 | 
			
		||||
                        Memory::Write32(addr, cpu->Reg[i]);
 | 
			
		||||
                        addr += 4;
 | 
			
		||||
                    } else {
 | 
			
		||||
                    else
 | 
			
		||||
                        Memory::Write32(addr, cpu->Reg_usr[1]);
 | 
			
		||||
 | 
			
		||||
                    addr += 4;
 | 
			
		||||
                }
 | 
			
		||||
                }
 | 
			
		||||
                if (BIT(inst_cream->inst, 15)) {
 | 
			
		||||
                    Memory::Write32(addr, cpu->Reg_usr[1] + 8);
 | 
			
		||||
                }
 | 
			
		||||
@ -6016,16 +6014,16 @@ unsigned InterpreterMainLoop(ARMul_State* state) {
 | 
			
		||||
                            Memory::Write32(addr, old_RN);
 | 
			
		||||
                        else
 | 
			
		||||
                            Memory::Write32(addr, cpu->Reg[i]);
 | 
			
		||||
 | 
			
		||||
                        addr += 4;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                // Check PC reg
 | 
			
		||||
                if(BIT(inst_cream->inst, i)) {
 | 
			
		||||
                if (BIT(inst_cream->inst, 15))
 | 
			
		||||
                    Memory::Write32(addr, cpu->Reg_usr[1] + 8);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        }
 | 
			
		||||
        cpu->Reg[15] += GET_INST_SIZE(cpu);
 | 
			
		||||
        INC_PC(sizeof(ldst_inst));
 | 
			
		||||
        FETCH_INST;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user