[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 01/33] target/s390x: Use cpu_loop_exit_restore fo
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v2 01/33] target/s390x: Use cpu_loop_exit_restore for tlb_fill |
Date: |
Wed, 24 May 2017 12:22:14 -0700 |
Reviewed-by: Thomas Huth <address@hidden>
Reviewed-by: Aurelien Jarno <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/s390x/mem_helper.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/target/s390x/mem_helper.c b/target/s390x/mem_helper.c
index 0c6a0d9..e3325a4 100644
--- a/target/s390x/mem_helper.c
+++ b/target/s390x/mem_helper.c
@@ -41,15 +41,9 @@
void tlb_fill(CPUState *cs, target_ulong addr, MMUAccessType access_type,
int mmu_idx, uintptr_t retaddr)
{
- int ret;
-
- ret = s390_cpu_handle_mmu_fault(cs, addr, access_type, mmu_idx);
+ int ret = s390_cpu_handle_mmu_fault(cs, addr, access_type, mmu_idx);
if (unlikely(ret != 0)) {
- if (likely(retaddr)) {
- /* now we have a real cpu fault */
- cpu_restore_state(cs, retaddr);
- }
- cpu_loop_exit(cs);
+ cpu_loop_exit_restore(cs, retaddr);
}
}
--
2.9.4
- [Qemu-devel] [PATCH v2 00/33] target/s390x unwind patches, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 02/33] target/s390x: Move helper_ex to end of file, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 03/33] target/s390x: Use unwind data for helper_nc, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 01/33] target/s390x: Use cpu_loop_exit_restore for tlb_fill,
Richard Henderson <=
- [Qemu-devel] [PATCH v2 04/33] target/s390x: Use unwind data for helper_oc, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 05/33] target/s390x: Use unwind data for helper_xc, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 06/33] target/s390x: Use unwind data for helper_mvc, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 07/33] target/s390x: Use unwind data for helper_clc, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 08/33] target/s390x: Use unwind data for helper_clm, Richard Henderson, 2017/05/24
- [Qemu-devel] [PATCH v2 09/33] target/s390x: Use unwind data for helper_srst, Richard Henderson, 2017/05/24