1*6291ad77SPeter Maydell /* 2*6291ad77SPeter Maydell * m68k specific CPU ABI and functions for linux-user 3*6291ad77SPeter Maydell * 4*6291ad77SPeter Maydell * Copyright (c) 2005-2007 CodeSourcery 5*6291ad77SPeter Maydell * Written by Paul Brook 6*6291ad77SPeter Maydell * 7*6291ad77SPeter Maydell * This library is free software; you can redistribute it and/or 8*6291ad77SPeter Maydell * modify it under the terms of the GNU Lesser General Public 9*6291ad77SPeter Maydell * License as published by the Free Software Foundation; either 10*6291ad77SPeter Maydell * version 2 of the License, or (at your option) any later version. 11*6291ad77SPeter Maydell * 12*6291ad77SPeter Maydell * This library is distributed in the hope that it will be useful, 13*6291ad77SPeter Maydell * but WITHOUT ANY WARRANTY; without even the implied warranty of 14*6291ad77SPeter Maydell * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15*6291ad77SPeter Maydell * General Public License for more details. 16*6291ad77SPeter Maydell * 17*6291ad77SPeter Maydell * You should have received a copy of the GNU Lesser General Public 18*6291ad77SPeter Maydell * License along with this library; if not, see <http://www.gnu.org/licenses/>. 19*6291ad77SPeter Maydell */ 20*6291ad77SPeter Maydell 21*6291ad77SPeter Maydell #ifndef TARGET_CPU_H 22*6291ad77SPeter Maydell #define TARGET_CPU_H 23*6291ad77SPeter Maydell 24*6291ad77SPeter Maydell static inline void cpu_clone_regs(CPUM68KState *env, target_ulong newsp) 25*6291ad77SPeter Maydell { 26*6291ad77SPeter Maydell if (newsp) { 27*6291ad77SPeter Maydell env->aregs[7] = newsp; 28*6291ad77SPeter Maydell } 29*6291ad77SPeter Maydell env->dregs[0] = 0; 30*6291ad77SPeter Maydell } 31*6291ad77SPeter Maydell 32*6291ad77SPeter Maydell /* TODO: need to implement cpu_set_tls() */ 33*6291ad77SPeter Maydell 34*6291ad77SPeter Maydell #endif 35