cpu.c (c60be6e3e38cb36dc66129e757ec4b34152232be) | cpu.c (b597eedcce0de84ff573a6be2cd6a89c7fa0fd8e) |
---|---|
1/* 2 * Sparc CPU init helpers 3 * 4 * Copyright (c) 2003-2005 Fabrice Bellard 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 32 unchanged lines hidden (view full) --- 41 } 42 43 memset(env, 0, offsetof(CPUSPARCState, end_reset_fields)); 44 env->cwp = 0; 45#ifndef TARGET_SPARC64 46 env->wim = 1; 47#endif 48 env->regwptr = env->regbase + (env->cwp * 16); | 1/* 2 * Sparc CPU init helpers 3 * 4 * Copyright (c) 2003-2005 Fabrice Bellard 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 32 unchanged lines hidden (view full) --- 41 } 42 43 memset(env, 0, offsetof(CPUSPARCState, end_reset_fields)); 44 env->cwp = 0; 45#ifndef TARGET_SPARC64 46 env->wim = 1; 47#endif 48 env->regwptr = env->regbase + (env->cwp * 16); |
49 CC_OP = CC_OP_FLAGS; | |
50#if defined(CONFIG_USER_ONLY) 51#ifdef TARGET_SPARC64 52 env->cleanwin = env->nwindows - 2; 53 env->cansave = env->nwindows - 2; 54 env->pstate = PS_RMO | PS_PEF | PS_IE; 55 env->asi = 0x82; /* Primary no-fault */ 56#endif 57#else --- 915 unchanged lines hidden --- | 49#if defined(CONFIG_USER_ONLY) 50#ifdef TARGET_SPARC64 51 env->cleanwin = env->nwindows - 2; 52 env->cansave = env->nwindows - 2; 53 env->pstate = PS_RMO | PS_PEF | PS_IE; 54 env->asi = 0x82; /* Primary no-fault */ 55#endif 56#else --- 915 unchanged lines hidden --- |