cpu.c (d1e8e8ecc3d2a1a72504912d671f1cbbac1b06e5) cpu.c (1f5c00cfdb8114c1e3a13426588ceb64f82c9ddb)
1/*
2 * QEMU Motorola 68k 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

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

47static void m68k_cpu_reset(CPUState *s)
48{
49 M68kCPU *cpu = M68K_CPU(s);
50 M68kCPUClass *mcc = M68K_CPU_GET_CLASS(cpu);
51 CPUM68KState *env = &cpu->env;
52
53 mcc->parent_reset(s);
54
1/*
2 * QEMU Motorola 68k 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

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

47static void m68k_cpu_reset(CPUState *s)
48{
49 M68kCPU *cpu = M68K_CPU(s);
50 M68kCPUClass *mcc = M68K_CPU_GET_CLASS(cpu);
51 CPUM68KState *env = &cpu->env;
52
53 mcc->parent_reset(s);
54
55 memset(env, 0, offsetof(CPUM68KState, features));
55 memset(env, 0, offsetof(CPUM68KState, end_reset_fields));
56#if !defined(CONFIG_USER_ONLY)
57 env->sr = 0x2700;
58#endif
59 m68k_switch_sp(env);
60 /* ??? FP regs should be initialized to NaN. */
61 cpu_m68k_set_ccr(env, 0);
62 /* TODO: We should set PC from the interrupt vector. */
63 env->pc = 0;
56#if !defined(CONFIG_USER_ONLY)
57 env->sr = 0x2700;
58#endif
59 m68k_switch_sp(env);
60 /* ??? FP regs should be initialized to NaN. */
61 cpu_m68k_set_ccr(env, 0);
62 /* TODO: We should set PC from the interrupt vector. */
63 env->pc = 0;
64 tlb_flush(s, 1);
65}
66
67static void m68k_cpu_disas_set_info(CPUState *s, disassemble_info *info)
68{
69 M68kCPU *cpu = M68K_CPU(s);
70 CPUM68KState *env = &cpu->env;
71 info->print_insn = print_insn_m68k;
72 if (m68k_feature(env, M68K_FEATURE_M68000)) {

--- 252 unchanged lines hidden ---
64}
65
66static void m68k_cpu_disas_set_info(CPUState *s, disassemble_info *info)
67{
68 M68kCPU *cpu = M68K_CPU(s);
69 CPUM68KState *env = &cpu->env;
70 info->print_insn = print_insn_m68k;
71 if (m68k_feature(env, M68K_FEATURE_M68000)) {

--- 252 unchanged lines hidden ---