cpu.c (d1e8e8ecc3d2a1a72504912d671f1cbbac1b06e5) | cpu.c (1f5c00cfdb8114c1e3a13426588ceb64f82c9ddb) |
---|---|
1/* 2 * QEMU MIPS CPU 3 * 4 * Copyright (c) 2012 SUSE LINUX Products GmbH 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 --- 86 unchanged lines hidden (view full) --- 95static void mips_cpu_reset(CPUState *s) 96{ 97 MIPSCPU *cpu = MIPS_CPU(s); 98 MIPSCPUClass *mcc = MIPS_CPU_GET_CLASS(cpu); 99 CPUMIPSState *env = &cpu->env; 100 101 mcc->parent_reset(s); 102 | 1/* 2 * QEMU MIPS CPU 3 * 4 * Copyright (c) 2012 SUSE LINUX Products GmbH 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 --- 86 unchanged lines hidden (view full) --- 95static void mips_cpu_reset(CPUState *s) 96{ 97 MIPSCPU *cpu = MIPS_CPU(s); 98 MIPSCPUClass *mcc = MIPS_CPU_GET_CLASS(cpu); 99 CPUMIPSState *env = &cpu->env; 100 101 mcc->parent_reset(s); 102 |
103 memset(env, 0, offsetof(CPUMIPSState, mvp)); 104 tlb_flush(s, 1); | 103 memset(env, 0, offsetof(CPUMIPSState, end_reset_fields)); |
105 106 cpu_state_reset(env); 107 108#ifndef CONFIG_USER_ONLY 109 if (kvm_enabled()) { 110 kvm_mips_reset_vcpu(cpu); 111 } 112#endif --- 91 unchanged lines hidden --- | 104 105 cpu_state_reset(env); 106 107#ifndef CONFIG_USER_ONLY 108 if (kvm_enabled()) { 109 kvm_mips_reset_vcpu(cpu); 110 } 111#endif --- 91 unchanged lines hidden --- |