diff options
author | Richard Henderson <rth@twiddle.net> | 2017-05-18 12:10:53 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2017-06-06 14:34:31 -0700 |
commit | 23cf9659b40449367e044ad95b42651537c29643 (patch) | |
tree | 143e962c7ec58e15f7483af1d2d2aeaeafc9b3f8 /target | |
parent | f79f1ca4a20d4070179903bbaafc13f5f90b7873 (diff) | |
download | qemu-23cf9659b40449367e044ad95b42651537c29643.zip qemu-23cf9659b40449367e044ad95b42651537c29643.tar.gz qemu-23cf9659b40449367e044ad95b42651537c29643.tar.bz2 |
target/s390x: Use cpu_loop_exit_restore for tlb_fill
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target')
-rw-r--r-- | target/s390x/mem_helper.c | 10 |
1 files 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); } } |