cpu.c (d1e8e8ecc3d2a1a72504912d671f1cbbac1b06e5) | cpu.c (1f5c00cfdb8114c1e3a13426588ceb64f82c9ddb) |
---|---|
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 --- 22 unchanged lines hidden (view full) --- 31static void sparc_cpu_reset(CPUState *s) 32{ 33 SPARCCPU *cpu = SPARC_CPU(s); 34 SPARCCPUClass *scc = SPARC_CPU_GET_CLASS(cpu); 35 CPUSPARCState *env = &cpu->env; 36 37 scc->parent_reset(s); 38 | 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 --- 22 unchanged lines hidden (view full) --- 31static void sparc_cpu_reset(CPUState *s) 32{ 33 SPARCCPU *cpu = SPARC_CPU(s); 34 SPARCCPUClass *scc = SPARC_CPU_GET_CLASS(cpu); 35 CPUSPARCState *env = &cpu->env; 36 37 scc->parent_reset(s); 38 |
39 memset(env, 0, offsetof(CPUSPARCState, version)); 40 tlb_flush(s, 1); | 39 memset(env, 0, offsetof(CPUSPARCState, end_reset_fields)); |
41 env->cwp = 0; 42#ifndef TARGET_SPARC64 43 env->wim = 1; 44#endif 45 env->regwptr = env->regbase + (env->cwp * 16); 46 CC_OP = CC_OP_FLAGS; 47#if defined(CONFIG_USER_ONLY) 48#ifdef TARGET_SPARC64 --- 847 unchanged lines hidden --- | 40 env->cwp = 0; 41#ifndef TARGET_SPARC64 42 env->wim = 1; 43#endif 44 env->regwptr = env->regbase + (env->cwp * 16); 45 CC_OP = CC_OP_FLAGS; 46#if defined(CONFIG_USER_ONLY) 47#ifdef TARGET_SPARC64 --- 847 unchanged lines hidden --- |