Revision fa3c9559

b/target-sparc/op_helper.c
4159 4159
void do_interrupt(CPUState *env)
4160 4160
{
4161 4161
    int intno = env->exception_index;
4162
    trap_state* tsptr;
4162
    trap_state *tsptr;
4163 4163

  
4164 4164
#ifdef DEBUG_PCALL
4165 4165
    if (qemu_loglevel_mask(CPU_LOG_INT)) {
4166 4166
        static int count;
4167 4167
        const char *name;
4168 4168

  
4169
        if (intno < 0 || intno >= 0x180)
4169
        if (intno < 0 || intno >= 0x180) {
4170 4170
            name = "Unknown";
4171
        else if (intno >= 0x100)
4171
        } else if (intno >= 0x100) {
4172 4172
            name = "Trap Instruction";
4173
        else if (intno >= 0xc0)
4173
        } else if (intno >= 0xc0) {
4174 4174
            name = "Window Fill";
4175
        else if (intno >= 0x80)
4175
        } else if (intno >= 0x80) {
4176 4176
            name = "Window Spill";
4177
        else {
4177
        } else {
4178 4178
            name = excp_names[intno];
4179
            if (!name)
4179
            if (!name) {
4180 4180
                name = "Unknown";
4181
            }
4181 4182
        }
4182 4183

  
4183 4184
        qemu_log("%6d: %s (v=%04x) pc=%016" PRIx64 " npc=%016" PRIx64
......
4193 4194

  
4194 4195
            qemu_log("       code=");
4195 4196
            ptr = (uint8_t *)env->pc;
4196
            for(i = 0; i < 16; i++) {
4197
            for (i = 0; i < 16; i++) {
4197 4198
                qemu_log(" %02x", ldub(ptr + i));
4198 4199
            }
4199 4200
            qemu_log("\n");
......
4213 4214
        env->tl++;
4214 4215
    } else {
4215 4216
        env->pstate |= PS_RED;
4216
        if (env->tl < env->maxtl)
4217
        if (env->tl < env->maxtl) {
4217 4218
            env->tl++;
4219
        }
4218 4220
    }
4219 4221
    tsptr = cpu_tsptr(env);
4220 4222

  
......
4299 4301
        static int count;
4300 4302
        const char *name;
4301 4303

  
4302
        if (intno < 0 || intno >= 0x100)
4304
        if (intno < 0 || intno >= 0x100) {
4303 4305
            name = "Unknown";
4304
        else if (intno >= 0x80)
4306
        } else if (intno >= 0x80) {
4305 4307
            name = "Trap Instruction";
4306
        else {
4308
        } else {
4307 4309
            name = excp_names[intno];
4308
            if (!name)
4310
            if (!name) {
4309 4311
                name = "Unknown";
4312
            }
4310 4313
        }
4311 4314

  
4312 4315
        qemu_log("%6d: %s (v=%02x) pc=%08x npc=%08x SP=%08x\n",
......
4321 4324

  
4322 4325
            qemu_log("       code=");
4323 4326
            ptr = (uint8_t *)env->pc;
4324
            for(i = 0; i < 16; i++) {
4327
            for (i = 0; i < 16; i++) {
4325 4328
                qemu_log(" %02x", ldub(ptr + i));
4326 4329
            }
4327 4330
            qemu_log("\n");

Also available in: Unified diff