mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
Move clone() register setup to target specific code. Handle fork-like clone.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4623 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a4a99d71b2
commit
6e68e076e7
10 changed files with 92 additions and 58 deletions
|
@ -218,6 +218,15 @@ static inline int cpu_mmu_index (CPUState *env)
|
|||
return !!(env->pregs[PR_CCS] & U_FLAG);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_USER_ONLY)
|
||||
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
|
||||
{
|
||||
if (!newsp)
|
||||
env->regs[14] = newsp;
|
||||
env->regs[10] = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Support function regs. */
|
||||
#define SFR_RW_GC_CFG 0][0
|
||||
#define SFR_RW_MM_CFG env->pregs[PR_SRS]][0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue