cpu.c (d1e8e8ecc3d2a1a72504912d671f1cbbac1b06e5) cpu.c (1f5c00cfdb8114c1e3a13426588ceb64f82c9ddb)
1/*
2 * QEMU SuperH CPU
3 *
4 * Copyright (c) 2005 Samuel Tardieu
5 * Copyright (c) 2012 SUSE LINUX Products GmbH
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public

--- 42 unchanged lines hidden (view full) ---

51static void superh_cpu_reset(CPUState *s)
52{
53 SuperHCPU *cpu = SUPERH_CPU(s);
54 SuperHCPUClass *scc = SUPERH_CPU_GET_CLASS(cpu);
55 CPUSH4State *env = &cpu->env;
56
57 scc->parent_reset(s);
58
1/*
2 * QEMU SuperH CPU
3 *
4 * Copyright (c) 2005 Samuel Tardieu
5 * Copyright (c) 2012 SUSE LINUX Products GmbH
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public

--- 42 unchanged lines hidden (view full) ---

51static void superh_cpu_reset(CPUState *s)
52{
53 SuperHCPU *cpu = SUPERH_CPU(s);
54 SuperHCPUClass *scc = SUPERH_CPU_GET_CLASS(cpu);
55 CPUSH4State *env = &cpu->env;
56
57 scc->parent_reset(s);
58
59 memset(env, 0, offsetof(CPUSH4State, id));
60 tlb_flush(s, 1);
59 memset(env, 0, offsetof(CPUSH4State, end_reset_fields));
61
62 env->pc = 0xA0000000;
63#if defined(CONFIG_USER_ONLY)
64 env->fpscr = FPSCR_PR; /* value for userspace according to the kernel */
65 set_float_rounding_mode(float_round_nearest_even, &env->fp_status); /* ?! */
66#else
67 env->sr = (1u << SR_MD) | (1u << SR_RB) | (1u << SR_BL) |
68 (1u << SR_I3) | (1u << SR_I2) | (1u << SR_I1) | (1u << SR_I0);

--- 264 unchanged lines hidden ---
60
61 env->pc = 0xA0000000;
62#if defined(CONFIG_USER_ONLY)
63 env->fpscr = FPSCR_PR; /* value for userspace according to the kernel */
64 set_float_rounding_mode(float_round_nearest_even, &env->fp_status); /* ?! */
65#else
66 env->sr = (1u << SR_MD) | (1u << SR_RB) | (1u << SR_BL) |
67 (1u << SR_I3) | (1u << SR_I2) | (1u << SR_I1) | (1u << SR_I0);

--- 264 unchanged lines hidden ---