ppc: Don't update NIP in DCR access routines
[qemu/kevin.git] / linux-user / unicore32 / target_cpu.h
blobd7d2e7b0837a5df733a1ab0c58f9e160531ab6c4
1 /*
2 * UniCore32 specific CPU ABI and functions for linux-user
4 * Copyright (C) 2010-2012 Guan Xuetao
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation, or (at your option) any
9 * later version. See the COPYING file in the top-level directory.
11 #ifndef UNICORE32_TARGET_CPU_H
12 #define UNICORE32_TARGET_CPU_H
14 static inline void cpu_clone_regs(CPUUniCore32State *env, target_ulong newsp)
16 if (newsp) {
17 env->regs[29] = newsp;
19 env->regs[0] = 0;
22 static inline void cpu_set_tls(CPUUniCore32State *env, target_ulong newtls)
24 env->regs[16] = newtls;
27 #endif