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
)
17 env
->regs
[29] = newsp
;
22 static inline void cpu_set_tls(CPUUniCore32State
*env
, target_ulong newtls
)
24 env
->regs
[16] = newtls
;