]> git.proxmox.com Git - mirror_qemu.git/blame - linux-user/unicore32/target_cpu.h
linux-user: Do not subtract offset from end address
[mirror_qemu.git] / linux-user / unicore32 / target_cpu.h
CommitLineData
6291ad77
PM
1/*
2 * UniCore32 specific CPU ABI and functions for linux-user
3 *
4 * Copyright (C) 2010-2012 Guan Xuetao
5 *
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.
10 */
11#ifndef TARGET_CPU_H
12#define TARGET_CPU_H
13
14static inline void cpu_clone_regs(CPUUniCore32State *env, target_ulong newsp)
15{
16 if (newsp) {
17 env->regs[29] = newsp;
18 }
19 env->regs[0] = 0;
20}
21
22static inline void cpu_set_tls(CPUUniCore32State *env, target_ulong newtls)
23{
24 env->regs[16] = newtls;
25}
26
27#endif