int32_helper.c (74e31681ba05ed1876818df30c581bc530554fb3) int32_helper.c (b597eedcce0de84ff573a6be2cd6a89c7fa0fd8e)
1/*
2 * Sparc32 interrupt 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

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

98}
99
100void sparc_cpu_do_interrupt(CPUState *cs)
101{
102 SPARCCPU *cpu = SPARC_CPU(cs);
103 CPUSPARCState *env = &cpu->env;
104 int cwp, intno = cs->exception_index;
105
1/*
2 * Sparc32 interrupt 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

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

98}
99
100void sparc_cpu_do_interrupt(CPUState *cs)
101{
102 SPARCCPU *cpu = SPARC_CPU(cs);
103 CPUSPARCState *env = &cpu->env;
104 int cwp, intno = cs->exception_index;
105
106 /* Compute PSR before exposing state. */
107 if (env->cc_op != CC_OP_FLAGS) {
108 cpu_get_psr(env);
109 }
110
111 if (qemu_loglevel_mask(CPU_LOG_INT)) {
112 static int count;
113 const char *name;
114
115 if (intno < 0 || intno >= 0x100) {
116 name = "Unknown";
117 } else if (intno >= 0x80) {
118 name = "Trap Instruction";

--- 53 unchanged lines hidden ---
106 if (qemu_loglevel_mask(CPU_LOG_INT)) {
107 static int count;
108 const char *name;
109
110 if (intno < 0 || intno >= 0x100) {
111 name = "Unknown";
112 } else if (intno >= 0x80) {
113 name = "Trap Instruction";

--- 53 unchanged lines hidden ---