[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v11 28/29] target/arm: [tcg, a64] Port to disas_log
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH v11 28/29] target/arm: [tcg, a64] Port to disas_log |
Date: |
Wed, 28 Jun 2017 17:09:39 +0300 |
User-agent: |
StGit/0.17.1-dirty |
Incrementally paves the way towards using the generic instruction translation
loop.
Signed-off-by: Lluís Vilanova <address@hidden>
---
target/arm/translate-a64.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
index c57f475dc0..cc8bbb2b44 100644
--- a/target/arm/translate-a64.c
+++ b/target/arm/translate-a64.c
@@ -11379,6 +11379,16 @@ static void aarch64_trblock_tb_stop(DisasContextBase
*dcbase, CPUState *cpu)
}
}
+static void aarch64_trblock_disas_log(const DisasContextBase *dcbase,
+ CPUState *cpu)
+{
+ DisasContext *dc = container_of(dcbase, DisasContext, base);
+
+ qemu_log("IN: %s\n", lookup_symbol(dc->base.pc_first));
+ log_target_disas(cpu, dc->base.pc_first, dc->pc - dc->base.pc_first,
+ 4 | (bswap_code(dc->sctlr_b) ? 2 : 0));
+}
+
void gen_intermediate_code_a64(DisasContextBase *dcbase, CPUState *cs,
TranslationBlock *tb)
{
@@ -11475,9 +11485,7 @@ done_generating:
qemu_log_in_addr_range(dc->base.pc_first)) {
qemu_log_lock();
qemu_log("----------------\n");
- qemu_log("IN: %s\n", lookup_symbol(dc->base.pc_first));
- log_target_disas(cs, dc->base.pc_first, dc->pc - dc->base.pc_first,
- 4 | (bswap_code(dc->sctlr_b) ? 2 : 0));
+ aarch64_trblock_disas_log(&dc->base, cs);
qemu_log("\n");
qemu_log_unlock();
}
- [Qemu-devel] [PATCH v11 18/29] target/arm: [tcg] Port to tb_start, (continued)
- [Qemu-devel] [PATCH v11 18/29] target/arm: [tcg] Port to tb_start, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 19/29] target/arm: [tcg] Port to insn_start, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 20/29] target/arm: [tcg, a64] Port to insn_start, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 21/29] target/arm: [tcg] Port to breakpoint_check, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 22/29] target/arm: [tcg, a64] Port to breakpoint_check, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 23/29] target/arm: [tcg] Port to translate_insn, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 24/29] target/arm: [tcg, a64] Port to translate_insn, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 25/29] target/arm: [tcg] Port to tb_stop, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 26/29] target/arm: [tcg, a64] Port to tb_stop, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 27/29] target/arm: [tcg] Port to disas_log, Lluís Vilanova, 2017/06/28
- [Qemu-devel] [PATCH v11 28/29] target/arm: [tcg, a64] Port to disas_log,
Lluís Vilanova <=
- [Qemu-devel] [PATCH v11 29/29] target/arm: [tcg] Port to generic translation framework, Lluís Vilanova, 2017/06/28