cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC
CPUState will be needed for all targets in the future, so place it into the main variable declaration block. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
		
							parent
							
								
									f8031482d7
								
							
						
					
					
						commit
						c356a1bcc0
					
				| 
						 | 
					@ -184,6 +184,9 @@ volatile sig_atomic_t exit_request;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int cpu_exec(CPUArchState *env)
 | 
					int cpu_exec(CPUArchState *env)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					#ifdef TARGET_PPC
 | 
				
			||||||
 | 
					    CPUState *cpu = ENV_GET_CPU(env);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
    int ret, interrupt_request;
 | 
					    int ret, interrupt_request;
 | 
				
			||||||
    TranslationBlock *tb;
 | 
					    TranslationBlock *tb;
 | 
				
			||||||
    uint8_t *tc_ptr;
 | 
					    uint8_t *tc_ptr;
 | 
				
			||||||
| 
						 | 
					@ -341,7 +344,7 @@ int cpu_exec(CPUArchState *env)
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
#elif defined(TARGET_PPC)
 | 
					#elif defined(TARGET_PPC)
 | 
				
			||||||
                    if ((interrupt_request & CPU_INTERRUPT_RESET)) {
 | 
					                    if ((interrupt_request & CPU_INTERRUPT_RESET)) {
 | 
				
			||||||
                        cpu_state_reset(env);
 | 
					                        cpu_reset(cpu);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    if (interrupt_request & CPU_INTERRUPT_HARD) {
 | 
					                    if (interrupt_request & CPU_INTERRUPT_HARD) {
 | 
				
			||||||
                        ppc_hw_interrupt(env);
 | 
					                        ppc_hw_interrupt(env);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue