From: "Dr. David Alan Gilbert" <dave@treblig.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org,
Pierrick Bouvier <pierrick.bouvier@linaro.org>,
Anton Johansson <anjo@rev.ng>,
Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Subject: Re: [PATCH v2 2/7] monitor/hmp: Make memory_dump() @is_physical argument a boolean
Date: Mon, 29 Dec 2025 23:48:21 +0000 [thread overview]
Message-ID: <aVMTRe-Hq7VM3L5g@gallifrey> (raw)
In-Reply-To: <20251229231546.50604-3-philmd@linaro.org>
* Philippe Mathieu-Daudé (philmd@linaro.org) wrote:
> Suggested-by: Dr. David Alan Gilbert <dave@treblig.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
> monitor/hmp-cmds-target.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/monitor/hmp-cmds-target.c b/monitor/hmp-cmds-target.c
> index 2976f986d35..51dcb9e314c 100644
> --- a/monitor/hmp-cmds-target.c
> +++ b/monitor/hmp-cmds-target.c
> @@ -122,7 +122,7 @@ void hmp_info_registers(Monitor *mon, const QDict *qdict)
> }
>
> static void memory_dump(Monitor *mon, int count, int format, int wsize,
> - hwaddr addr, int is_physical)
> + hwaddr addr, bool is_physical)
> {
> int l, line_size, i, max_digits, len;
> uint8_t buf[16];
> @@ -237,7 +237,7 @@ void hmp_memory_dump(Monitor *mon, const QDict *qdict)
> int size = qdict_get_int(qdict, "size");
> target_long addr = qdict_get_int(qdict, "addr");
>
> - memory_dump(mon, count, format, size, addr, 0);
> + memory_dump(mon, count, format, size, addr, false);
> }
>
> void hmp_physical_memory_dump(Monitor *mon, const QDict *qdict)
> @@ -247,7 +247,7 @@ void hmp_physical_memory_dump(Monitor *mon, const QDict *qdict)
> int size = qdict_get_int(qdict, "size");
> hwaddr addr = qdict_get_int(qdict, "addr");
>
> - memory_dump(mon, count, format, size, addr, 1);
> + memory_dump(mon, count, format, size, addr, true);
> }
>
> void *gpa2hva(MemoryRegion **p_mr, hwaddr addr, uint64_t size, Error **errp)
> --
> 2.52.0
>
--
-----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 |_______/
next prev parent reply other threads:[~2025-12-29 23:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-29 23:15 [PATCH v2 0/7] monitor: Merge hmp-cmds-target.c within hmp-cmds.c Philippe Mathieu-Daudé
2025-12-29 23:15 ` [PATCH v2 1/7] monitor/hmp: Replace target_ulong -> vaddr in hmp_gva2gpa() Philippe Mathieu-Daudé
2026-01-08 7:30 ` Markus Armbruster
2026-01-11 0:07 ` Richard Henderson
2026-01-12 6:33 ` Markus Armbruster
2026-01-12 21:26 ` Richard Henderson
2025-12-29 23:15 ` [PATCH v2 2/7] monitor/hmp: Make memory_dump() @is_physical argument a boolean Philippe Mathieu-Daudé
2025-12-29 23:48 ` Dr. David Alan Gilbert [this message]
2025-12-30 6:20 ` Manos Pitsidianakis
2025-12-29 23:15 ` [PATCH v2 3/7] monitor/hmp: Use plain uint64_t @addr argument in memory_dump() Philippe Mathieu-Daudé
2025-12-29 23:15 ` [PATCH v2 4/7] monitor/hmp: Remove target_long uses " Philippe Mathieu-Daudé
2025-12-29 23:15 ` [PATCH v2 5/7] monitor/hmp: Inline ld[uw, l, q]_p() calls " Philippe Mathieu-Daudé
2025-12-29 23:15 ` [PATCH v2 6/7] monitor/hmp: Fix coding style in hmp-cmds-target.c Philippe Mathieu-Daudé
2025-12-29 23:15 ` [PATCH v2 7/7] monitor/hmp: Merge hmp-cmds-target.c within hmp-cmds.c Philippe Mathieu-Daudé
2025-12-30 18:15 ` [PATCH v2 0/7] monitor: " Philippe Mathieu-Daudé
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=aVMTRe-Hq7VM3L5g@gallifrey \
--to=dave@treblig.org \
--cc=anjo@rev.ng \
--cc=manos.pitsidianakis@linaro.org \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@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 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.