From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Jason Thorpe <thorpej@me.com>
Subject: [PULL 2/5] hw/alpha: Provide console information to the PALcode at start-up
Date: Mon, 28 Jun 2021 07:35:48 -0700 [thread overview]
Message-ID: <20210628143551.2870006-3-richard.henderson@linaro.org> (raw)
In-Reply-To: <20210628143551.2870006-1-richard.henderson@linaro.org>
From: Jason Thorpe <thorpej@me.com>
Redefine the a2 register passed by Qemu at start-up to also include
some configuration flags, in addition to the CPU count, and define
a flag to mirror the "-nographic" option.
Signed-off-by: Jason Thorpe <thorpej@me.com>
Message-Id: <20210613211549.18094-5-thorpej@me.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/alpha/dp264.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/hw/alpha/dp264.c b/hw/alpha/dp264.c
index 010d22476b..316f0691cd 100644
--- a/hw/alpha/dp264.c
+++ b/hw/alpha/dp264.c
@@ -72,9 +72,19 @@ static void clipper_init(MachineState *machine)
cpus[i] = ALPHA_CPU(cpu_create(machine->cpu_type));
}
+ /*
+ * arg0 -> memory size
+ * arg1 -> kernel entry point
+ * arg2 -> config word
+ *
+ * Config word: bits 0-5 -> ncpus
+ * bit 6 -> nographics option (for HWRPB CTB)
+ *
+ * See init_hwrpb() in the PALcode.
+ */
cpus[0]->env.trap_arg0 = ram_size;
cpus[0]->env.trap_arg1 = 0;
- cpus[0]->env.trap_arg2 = smp_cpus;
+ cpus[0]->env.trap_arg2 = smp_cpus | (!machine->enable_graphics << 6);
/*
* Init the chipset. Because we're using CLIPPER IRQ mappings,
--
2.25.1
next prev parent reply other threads:[~2021-06-28 14:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-28 14:35 [PULL 0/5] target/alpha patch queue Richard Henderson
2021-06-28 14:35 ` [PULL 1/5] hw/alpha: Set minimum PCI device ID to 1 to match Clipper IRQ mappings Richard Henderson
2021-06-28 14:35 ` Richard Henderson [this message]
2021-06-28 14:35 ` [PULL 3/5] hw/alpha: Provide a PCI-ISA bridge device node Richard Henderson
2021-06-28 14:35 ` [PULL 4/5] pc-bios: Update the palcode-clipper image Richard Henderson
2021-06-28 14:35 ` [PULL 5/5] target/alpha: Honor the FEN bit Richard Henderson
2021-06-28 14:42 ` [PULL 0/5] target/alpha patch queue no-reply
2021-06-29 10:43 ` Peter Maydell
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=20210628143551.2870006-3-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thorpej@me.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).