From: "Dr. David Alan Gilbert" <dave@treblig.org>
To: Brian Cain <brian.cain@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org, marcandre.lureau@redhat.com,
Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Subject: Re: [PATCH v2] target/hexagon: Add HMP info tlb command
Date: Tue, 18 Aug 2026 23:00:57 +0000 [thread overview]
Message-ID: <aoTkKdqA7Erso4Sk@gallifrey> (raw)
In-Reply-To: <20260818203047.2933487-1-brian.cain@oss.qualcomm.com>
* Brian Cain (brian.cain@oss.qualcomm.com) wrote:
> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Acked-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
> target/hexagon/hmp-cmds.c | 23 +++++++++++++++++++++++
> hmp-commands-info.hx | 3 ++-
> target/hexagon/meson.build | 1 +
> 3 files changed, 26 insertions(+), 1 deletion(-)
> create mode 100644 target/hexagon/hmp-cmds.c
>
> diff --git a/target/hexagon/hmp-cmds.c b/target/hexagon/hmp-cmds.c
> new file mode 100644
> index 00000000000..150045769cc
> --- /dev/null
> +++ b/target/hexagon/hmp-cmds.c
> @@ -0,0 +1,23 @@
> +/*
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + *
> + * SPDX-License-Identifier: GPL-2.0-or-later
> + */
> +
> +#include "qemu/osdep.h"
> +#include "cpu.h"
> +#include "hex_mmu.h"
> +#include "monitor/hmp.h"
> +#include "monitor/monitor.h"
> +
> +void hmp_info_tlb(Monitor *mon, const QDict *qdict)
> +{
> + CPUArchState *env = mon_get_cpu_env(mon);
> +
> + if (!env) {
> + monitor_printf(mon, "No CPU available\n");
> + return;
> + }
> +
> + dump_mmu(mon, env);
> +}
> diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
> index 82134eb6c21..0d31fb8a84c 100644
> --- a/hmp-commands-info.hx
> +++ b/hmp-commands-info.hx
> @@ -193,7 +193,8 @@ ERST
> .help = "show virtual to physical memory mappings",
> .cmd = hmp_info_tlb,
> .arch_bitmask = QEMU_ARCH_I386 | QEMU_ARCH_SH4 | QEMU_ARCH_SPARC \
> - | QEMU_ARCH_PPC | QEMU_ARCH_XTENSA | QEMU_ARCH_M68K,
> + | QEMU_ARCH_PPC | QEMU_ARCH_XTENSA | QEMU_ARCH_M68K \
> + | QEMU_ARCH_HEXAGON,
> },
>
> SRST
> diff --git a/target/hexagon/meson.build b/target/hexagon/meson.build
> index 4c921eee73b..53c500522a8 100644
> --- a/target/hexagon/meson.build
> +++ b/target/hexagon/meson.build
> @@ -261,6 +261,7 @@ hexagon_softmmu_ss.add(files(
> 'hex_interrupts.c',
> 'hexswi.c',
> 'machine.c',
> + 'hmp-cmds.c',
> ))
>
> #
> --
> 2.34.1
>
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
prev parent reply other threads:[~2026-08-18 23:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 20:30 [PATCH v2] target/hexagon: Add HMP info tlb command Brian Cain
2026-08-18 23:00 ` Dr. David Alan Gilbert [this message]
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=aoTkKdqA7Erso4Sk@gallifrey \
--to=dave@treblig.org \
--cc=brian.cain@oss.qualcomm.com \
--cc=marcandre.lureau@redhat.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.