Revision 6e68e076 target-ppc/cpu.h
b/target-ppc/cpu.h | ||
---|---|---|
822 | 822 |
return env->mmu_idx; |
823 | 823 |
} |
824 | 824 |
|
825 |
#if defined(CONFIG_USER_ONLY) |
|
826 |
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) |
|
827 |
{ |
|
828 |
int i; |
|
829 |
if (!newsp) |
|
830 |
env->gpr[1] = newsp; |
|
831 |
for (i = 7; i < 32; i++) |
|
832 |
env->gpr[i] = 0; |
|
833 |
} |
|
834 |
#endif |
|
835 |
|
|
825 | 836 |
#include "cpu-all.h" |
826 | 837 |
|
827 | 838 |
/*****************************************************************************/ |
Also available in: Unified diff