mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	added option to set CPSR register to arm_interface
This commit is contained in:
		
							parent
							
								
									6b264518a5
								
							
						
					
					
						commit
						ce4d271a53
					
				
					 3 changed files with 20 additions and 0 deletions
				
			
		|  | @ -55,6 +55,12 @@ public: | |||
|      */ | ||||
|     virtual u32 GetCPSR() const = 0;   | ||||
| 
 | ||||
|     /**
 | ||||
|      * Set the current CPSR register | ||||
|      * @param cpsr Value to set CPSR to | ||||
|      */ | ||||
|     virtual void SetCPSR(u32 cpsr) = 0; | ||||
| 
 | ||||
|     /**
 | ||||
|      * Returns the number of clock ticks since the last rese | ||||
|      * @return Returns number of clock ticks | ||||
|  |  | |||
|  | @ -77,6 +77,14 @@ u32 ARM_Interpreter::GetCPSR() const { | |||
|     return m_state->Cpsr; | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  * Set the current CPSR register | ||||
|  * @param cpsr Value to set CPSR to | ||||
|  */ | ||||
| void ARM_Interpreter::SetCPSR(u32 cpsr) { | ||||
|     m_state->Cpsr = cpsr; | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  * Returns the number of clock ticks since the last reset | ||||
|  * @return Returns number of clock ticks | ||||
|  |  | |||
|  | @ -48,6 +48,12 @@ public: | |||
|      */ | ||||
|     u32 GetCPSR() const; | ||||
| 
 | ||||
|     /**
 | ||||
|      * Set the current CPSR register | ||||
|      * @param cpsr Value to set CPSR to | ||||
|      */ | ||||
|     void SetCPSR(u32 cpsr); | ||||
| 
 | ||||
|     /**
 | ||||
|      * Returns the number of clock ticks since the last reset | ||||
|      * @return Returns number of clock ticks | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue