From: David Gibson <david@gibson.dropbear.id.au>
To: agraf@suse.de, armbru@redhat.com, lcapitulino@redhat.com
Cc: lvivier@redhat.com, thuth@redhat.com, qemu-devel@nongnu.org,
qemu-ppc@nongnu.org, afaerber@suse.de,
David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [PATCH 4/4] Disable "info irq" and "info pic" for target-ppc
Date: Mon, 29 Jun 2015 15:36:54 +1000 [thread overview]
Message-ID: <1435556214-2916-5-git-send-email-david@gibson.dropbear.id.au> (raw)
In-Reply-To: <1435556214-2916-1-git-send-email-david@gibson.dropbear.id.au>
The "info irq" and "info pic" HMP commands are available on some, but not
all targets, and what they do isn't terribly consistent. For SPARC and
LM32 they do something platform specific, but for x86, powerpc, and MIPS
they print some information from the i8259 (and only the i8259) interrupt
controller.
It's debatable whether these commands are any use at all, and we should
probably make better, qdev aware ways of getting information from a
machines PICs. However, those don't exist yet, so on x86 it's at least
potentially useful to have these HMP commands. I can't speak for MIPS.
For ppc, though, the i8259, if it exists at all, is usually just a
secondary controller for legacy ISA. The only case where i8259 is the
main system PIC on ppc is for the ancient and little-used PReP platform.
So, even without QOM-ish replacement, the info pic and info irq HMP
commands have no value on ppc.
This patch, therefore, disables these commands for ppc targets. This will
allow ppc builds which don't include PReP to not include ISA bus support
either.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---
monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/monitor.c b/monitor.c
index aeea2b5..8c56bfa 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2573,7 +2573,7 @@ static mon_cmd_t info_cmds[] = {
.help = "show the command line history",
.mhandler.cmd = hmp_info_history,
},
-#if defined(TARGET_I386) || defined(TARGET_PPC) || defined(TARGET_MIPS) || \
+#if defined(TARGET_I386) || defined(TARGET_MIPS) || \
defined(TARGET_LM32) || (defined(TARGET_SPARC) && !defined(TARGET_SPARC64))
{
.name = "irq",
--
2.4.3
next prev parent reply other threads:[~2015-06-29 5:36 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 5:36 [Qemu-devel] [PATCH 0/4] Allow ISA bus support to be configured out David Gibson
2015-06-29 5:36 ` [Qemu-devel] [PATCH 1/4] Split serial-isa into its own config option David Gibson
2015-06-29 10:12 ` Andreas Färber
2015-06-30 3:38 ` David Gibson
2015-06-29 10:35 ` Peter Maydell
2015-06-30 3:40 ` David Gibson
2015-07-01 4:20 ` David Gibson
2015-07-01 11:15 ` Peter Maydell
2015-07-02 5:01 ` David Gibson
2015-06-29 5:36 ` [Qemu-devel] [PATCH 2/4] Allow ISA bus to be configured out David Gibson
2015-06-29 10:26 ` Andreas Färber
2015-06-30 3:44 ` David Gibson
2015-06-30 4:48 ` David Gibson
2015-06-30 9:35 ` Andreas Färber
2015-06-29 5:36 ` [Qemu-devel] [PATCH 3/4] Split ISA and sysbus versions of m48t59 device David Gibson
2015-06-29 5:36 ` David Gibson [this message]
2015-06-29 7:52 ` [Qemu-devel] [PATCH 4/4] Disable "info irq" and "info pic" for target-ppc Laurent Vivier
2015-06-29 9:30 ` Thomas Huth
2015-06-29 9:51 ` Laurent Vivier
2015-06-29 9:55 ` Laurent Vivier
2015-06-29 10:06 ` Andreas Färber
2015-06-29 10:22 ` Laurent Vivier
2015-06-29 10:36 ` Andreas Färber
2015-06-29 10:43 ` Andreas Färber
2015-06-29 11:02 ` Alexander Graf
2015-06-29 23:11 ` David Gibson
2015-06-29 10:11 ` Thomas Huth
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=1435556214-2916-5-git-send-email-david@gibson.dropbear.id.au \
--to=david@gibson.dropbear.id.au \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=armbru@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=lvivier@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/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).