From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Helge Deller" <deller@gmx.de>,
qemu-devel@nongnu.org
Cc: Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Thomas Huth <thuth@redhat.com>,
Sven Schnelle <svens@stackframe.org>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [PATCH] tests/boot-serial-test: Allow the HPPA machine to shudown
Date: Wed, 22 Jan 2020 17:27:05 -1000 [thread overview]
Message-ID: <15bada61-7e0c-bb4d-a91e-2cdfd42161e1@linaro.org> (raw)
In-Reply-To: <20200123003603.11610-1-f4bug@amsat.org>
On 1/22/20 2:36 PM, Philippe Mathieu-Daudé wrote:
> The boot-serial test uses SeaBIOS on HPPA, and expects to read the
> "SeaBIOS wants SYSTEM HALT" string, see [*]:
>
> 122 void __VISIBLE __noreturn hlt(void)
> 123 {
> 124 if (pdc_debug)
> 125 printf("HALT initiated from %p\n", __builtin_return_address(0));
> 126 printf("SeaBIOS wants SYSTEM HALT.\n\n");
> 127 asm volatile("\t.word 0xfffdead0": : :"memory");
> 128 while (1);
> 129 }
>
> A 'SYSTEM HALT' would really halts the CPU, but SeaBIOS implements
> it as an infinite loop.
Well, SeaBIOS implements it as the magic QEMU halt instruction,
# These are artificial instructions used by QEMU firmware.
# They are allocated from the unassigned instruction space.
halt 1111 1111 1111 1101 1110 1010 1101 0000
reset 1111 1111 1111 1101 1110 1010 1101 0001
followed by an infinite loop, probably to avoid a compiler warning and Just In
Case. We really should halt here, unless shutdown is disabled.
> - qts = qtest_initf("%s %s -M %s -no-shutdown "
> + qts = qtest_initf("%s %s -M %s %s "
> "-chardev file,id=serial0,path=%s "
> "-serial chardev:serial0 -accel tcg -accel kvm %s",
> codeparam, code ? codetmp : "", test->machine,
> + shutdown ? "" : "-no-shutdown",
> serialtmp, test->extra);
And thus avoiding the -no-shutdown should in fact shutdown.
Are you saying this doesn't happen, or what? I think I got lost with the rest
of the message...
r~
next prev parent reply other threads:[~2020-01-23 3:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 0:36 [PATCH] tests/boot-serial-test: Allow the HPPA machine to shudown Philippe Mathieu-Daudé
2020-01-23 3:27 ` Richard Henderson [this message]
2020-01-23 18:37 ` Philippe Mathieu-Daudé
2020-01-23 4:39 ` Thomas Huth
2020-01-23 18:29 ` Philippe Mathieu-Daudé
2020-01-23 21:37 ` Philippe Mathieu-Daudé
2020-01-24 7:02 ` Thomas Huth
2020-01-24 10:33 ` 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=15bada61-7e0c-bb4d-a91e-2cdfd42161e1@linaro.org \
--to=richard.henderson@linaro.org \
--cc=deller@gmx.de \
--cc=f4bug@amsat.org \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=svens@stackframe.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).