sparc: fix coding style of the area to be moved

Before the next patch, fix coding style of the areas affected.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2011-05-21 11:41:50 +00:00
parent 1162c041c1
commit fa3c9559db
1 changed files with 17 additions and 14 deletions

View File

@ -4166,19 +4166,20 @@ void do_interrupt(CPUState *env)
static int count; static int count;
const char *name; const char *name;
if (intno < 0 || intno >= 0x180) if (intno < 0 || intno >= 0x180) {
name = "Unknown"; name = "Unknown";
else if (intno >= 0x100) } else if (intno >= 0x100) {
name = "Trap Instruction"; name = "Trap Instruction";
else if (intno >= 0xc0) } else if (intno >= 0xc0) {
name = "Window Fill"; name = "Window Fill";
else if (intno >= 0x80) } else if (intno >= 0x80) {
name = "Window Spill"; name = "Window Spill";
else { } else {
name = excp_names[intno]; name = excp_names[intno];
if (!name) if (!name) {
name = "Unknown"; name = "Unknown";
} }
}
qemu_log("%6d: %s (v=%04x) pc=%016" PRIx64 " npc=%016" PRIx64 qemu_log("%6d: %s (v=%04x) pc=%016" PRIx64 " npc=%016" PRIx64
" SP=%016" PRIx64 "\n", " SP=%016" PRIx64 "\n",
@ -4213,9 +4214,10 @@ void do_interrupt(CPUState *env)
env->tl++; env->tl++;
} else { } else {
env->pstate |= PS_RED; env->pstate |= PS_RED;
if (env->tl < env->maxtl) if (env->tl < env->maxtl) {
env->tl++; env->tl++;
} }
}
tsptr = cpu_tsptr(env); tsptr = cpu_tsptr(env);
tsptr->tstate = (get_ccr() << 32) | tsptr->tstate = (get_ccr() << 32) |
@ -4299,15 +4301,16 @@ void do_interrupt(CPUState *env)
static int count; static int count;
const char *name; const char *name;
if (intno < 0 || intno >= 0x100) if (intno < 0 || intno >= 0x100) {
name = "Unknown"; name = "Unknown";
else if (intno >= 0x80) } else if (intno >= 0x80) {
name = "Trap Instruction"; name = "Trap Instruction";
else { } else {
name = excp_names[intno]; name = excp_names[intno];
if (!name) if (!name) {
name = "Unknown"; name = "Unknown";
} }
}
qemu_log("%6d: %s (v=%02x) pc=%08x npc=%08x SP=%08x\n", qemu_log("%6d: %s (v=%02x) pc=%08x npc=%08x SP=%08x\n",
count, name, intno, count, name, intno,