mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
PPC: 405: Use proper CPU reset
On ppc405ep there is a register that allows for software to reset the core, but not the whole system. Implement this reset using a reset interrupt. This gets rid of a bunch of #if 0'ed code. Reported-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
418ba9e5d6
commit
fc0b2c0f1a
4 changed files with 7 additions and 27 deletions
|
@ -2051,6 +2051,9 @@ enum {
|
|||
PPC_INTERRUPT_PERFM, /* Performance monitor interrupt */
|
||||
};
|
||||
|
||||
/* CPU should be reset next, restart from scratch afterwards */
|
||||
#define CPU_INTERRUPT_RESET CPU_INTERRUPT_TGT_INT_0
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue