QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
707 B
27 lines
707 B
/*
|
|
* UniCore32 specific CPU ABI and functions for linux-user
|
|
*
|
|
* Copyright (C) 2010-2012 Guan Xuetao
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation, or (at your option) any
|
|
* later version. See the COPYING file in the top-level directory.
|
|
*/
|
|
#ifndef TARGET_CPU_H
|
|
#define TARGET_CPU_H
|
|
|
|
static inline void cpu_clone_regs(CPUUniCore32State *env, target_ulong newsp)
|
|
{
|
|
if (newsp) {
|
|
env->regs[29] = newsp;
|
|
}
|
|
env->regs[0] = 0;
|
|
}
|
|
|
|
static inline void cpu_set_tls(CPUUniCore32State *env, target_ulong newtls)
|
|
{
|
|
env->regs[16] = newtls;
|
|
}
|
|
|
|
#endif
|
|
|