[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/7] disas: Show opcodes for target_disas and monitor_disas
From: |
Richard Henderson |
Subject: |
[PULL 6/7] disas: Show opcodes for target_disas and monitor_disas |
Date: |
Fri, 29 Mar 2024 12:20:36 -1000 |
Fixes: 83b4613ba83 ("disas: introduce show_opcodes")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
disas/disas-mon.c | 1 +
disas/disas.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/disas/disas-mon.c b/disas/disas-mon.c
index 48ac492c6c..5d6d9aa02d 100644
--- a/disas/disas-mon.c
+++ b/disas/disas-mon.c
@@ -34,6 +34,7 @@ void monitor_disas(Monitor *mon, CPUState *cpu, uint64_t pc,
disas_initialize_debug_target(&s, cpu);
s.info.fprintf_func = disas_gstring_printf;
s.info.stream = (FILE *)ds; /* abuse this slot */
+ s.info.show_opcodes = true;
if (is_physical) {
s.info.read_memory_func = physical_read_memory;
diff --git a/disas/disas.c b/disas/disas.c
index 17170d291e..7e3b0bb46c 100644
--- a/disas/disas.c
+++ b/disas/disas.c
@@ -211,6 +211,7 @@ void target_disas(FILE *out, CPUState *cpu, uint64_t code,
size_t size)
s.info.stream = out;
s.info.buffer_vma = code;
s.info.buffer_length = size;
+ s.info.show_opcodes = true;
if (s.info.cap_arch >= 0 && cap_disas_target(&s.info, code, size)) {
return;
--
2.34.1
- [PULL 0/7] tcg + linux-user patch queue, Richard Henderson, 2024/03/29
- [PULL 2/7] linux-user: Fix shmat() strace, Richard Henderson, 2024/03/29
- [PULL 3/7] linux-user: Fix shmat(NULL) for h != g, Richard Henderson, 2024/03/29
- [PULL 1/7] linux-user: Fix semctl() strace, Richard Henderson, 2024/03/29
- [PULL 4/7] tests/tcg: Test shmat(NULL), Richard Henderson, 2024/03/29
- [PULL 5/7] tcg/optimize: Fix sign_mask for logical right-shift, Richard Henderson, 2024/03/29
- [PULL 7/7] accel/tcg: Use CPUState.get_pc in cpu_io_recompile, Richard Henderson, 2024/03/29
- [PULL 6/7] disas: Show opcodes for target_disas and monitor_disas,
Richard Henderson <=
- Re: [PULL 0/7] tcg + linux-user patch queue, Peter Maydell, 2024/03/31