From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH v3 21/27] target/tilegx: Convert to CPUClass::tlb_fill
Date: Thu, 9 May 2019 15:26:25 -0700 [thread overview]
Message-ID: <20190509222631.14271-22-richard.henderson@linaro.org> (raw)
In-Reply-To: <20190509222631.14271-1-richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/tilegx/cpu.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/target/tilegx/cpu.c b/target/tilegx/cpu.c
index b9d37105fa..b209c55387 100644
--- a/target/tilegx/cpu.c
+++ b/target/tilegx/cpu.c
@@ -25,6 +25,7 @@
#include "hw/qdev-properties.h"
#include "linux-user/syscall_defs.h"
#include "qemu/qemu-print.h"
+#include "exec/exec-all.h"
static void tilegx_cpu_dump_state(CPUState *cs, FILE *f, int flags)
{
@@ -111,8 +112,9 @@ static void tilegx_cpu_do_interrupt(CPUState *cs)
cs->exception_index = -1;
}
-static int tilegx_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int size,
- int rw, int mmu_idx)
+static bool tilegx_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
+ MMUAccessType access_type, int mmu_idx,
+ bool probe, uintptr_t retaddr)
{
TileGXCPU *cpu = TILEGX_CPU(cs);
@@ -122,7 +124,7 @@ static int tilegx_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int size,
cpu->env.signo = TARGET_SIGSEGV;
cpu->env.sigcode = 0;
- return 1;
+ cpu_loop_exit_restore(cs, retaddr);
}
static bool tilegx_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
@@ -152,7 +154,7 @@ static void tilegx_cpu_class_init(ObjectClass *oc, void *data)
cc->cpu_exec_interrupt = tilegx_cpu_exec_interrupt;
cc->dump_state = tilegx_cpu_dump_state;
cc->set_pc = tilegx_cpu_set_pc;
- cc->handle_mmu_fault = tilegx_cpu_handle_mmu_fault;
+ cc->tlb_fill = tilegx_cpu_tlb_fill;
cc->gdb_num_core_regs = 0;
cc->tcg_initialize = tilegx_tcg_init;
}
--
2.17.1
next prev parent reply other threads:[~2019-05-09 22:50 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-09 22:26 [Qemu-devel] [PATCH v3 00/27] tcg: Add CPUClass::tlb_fill Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 01/27] " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 02/27] target/alpha: Convert to CPUClass::tlb_fill Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 03/27] target/arm: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 04/27] target/cris: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 05/27] target/hppa: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 06/27] target/i386: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 07/27] target/lm32: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 08/27] target/m68k: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 09/27] target/microblaze: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 10/27] target/mips: Pass a valid error to raise_mmu_exception for user-only Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 11/27] target/mips: Tidy control flow in mips_cpu_handle_mmu_fault Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 12/27] target/mips: Convert to CPUClass::tlb_fill Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 13/27] target/moxie: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 14/27] target/nios2: " Richard Henderson
2019-05-10 8:58 ` Peter Maydell
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 15/27] target/openrisc: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 16/27] target/ppc: " Richard Henderson
2019-05-10 1:39 ` David Gibson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 17/27] target/riscv: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 18/27] target/s390x: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 19/27] target/sh4: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 20/27] target/sparc: " Richard Henderson
2019-05-10 9:55 ` Peter Maydell
2019-05-10 9:57 ` Peter Maydell
2019-05-09 22:26 ` Richard Henderson [this message]
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 22/27] target/tricore: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 23/27] target/unicore32: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 24/27] target/xtensa: " Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 25/27] tcg: Use CPUClass::tlb_fill in cputlb.c Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 26/27] tcg: Remove CPUClass::handle_mmu_fault Richard Henderson
2019-05-09 22:26 ` [Qemu-devel] [PATCH v3 27/27] tcg: Use tlb_fill probe from tlb_vaddr_to_host Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190509222631.14271-22-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).