commit: reopen overlay_bs before base
[qemu/rayw.git] / linux-user / unicore32 / target_cpu.h
blobfb7908719fb8d5fadcad596055f36855448e8a2b
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 TARGET_CPU_H
12 #define 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