* [Qemu-devel] [PATCH] target-sparc/helper.c cpu_sparc_handle_mmu_fault cleanup
@ 2009-03-09 23:55 Robert Reif
0 siblings, 0 replies; only message in thread
From: Robert Reif @ 2009-03-09 23:55 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 25 bytes --]
Remove unnecessary else.
[-- Attachment #2: helper.diff.txt --]
[-- Type: text/plain, Size: 732 bytes --]
Index: target-sparc/helper.c
===================================================================
--- target-sparc/helper.c (revision 6798)
+++ target-sparc/helper.c (working copy)
@@ -255,13 +255,13 @@
prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC;
ret = tlb_set_page_exec(env, vaddr, paddr, prot, mmu_idx, is_softmmu);
return ret;
- } else {
- if (rw & 2)
- env->exception_index = TT_TFAULT;
- else
- env->exception_index = TT_DFAULT;
- return 1;
}
+
+ if (rw & 2)
+ env->exception_index = TT_TFAULT;
+ else
+ env->exception_index = TT_DFAULT;
+ return 1;
}
target_ulong mmu_probe(CPUState *env, target_ulong address, int mmulev)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-09 23:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09 23:55 [Qemu-devel] [PATCH] target-sparc/helper.c cpu_sparc_handle_mmu_fault cleanup Robert Reif
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).