From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
Keith Monahan <keith@techtravels.org>,
"Kirill A . Korinsky" <kirill@korins.ky>,
Helge Deller <deller@gmx.de>
Subject: [PATCH 7/8] hw/misc/lasi: LASI Harmony Audio presence emulation
Date: Tue, 27 Oct 2026 22:52:08 +0100 [thread overview]
Message-ID: <20261027215209.21150-8-deller@kernel.org> (raw)
In-Reply-To: <20261027215209.21150-1-deller@kernel.org>
From: Helge Deller <deller@gmx.de>
HP-UX 9 beeps through the harmony audio chip, and it panics if there
isn't one, because the 715/64 has no HIL keyboard to beep through
instead. Emulate the bare minimum of the chip's registers and report a
running audio clock. There's still no sound.
In the long run we plan to add a Harmony driver, but for now this is
sufficient.
Suggested-by: Keith Monahan <keith@techtravels.org>
Signed-off-by: Helge Deller <deller@gmx.de>
---
hw/misc/lasi.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/hw/misc/lasi.c b/hw/misc/lasi.c
index f0dfd78b4d..76029804e1 100644
--- a/hw/misc/lasi.c
+++ b/hw/misc/lasi.c
@@ -36,8 +36,7 @@ static bool lasi_chip_mem_valid(void *opaque, hwaddr addr,
case LASI_IAR:
case LASI_LPT:
- case LASI_AUDIO:
- case LASI_AUDIO + 4:
+ case LASI_AUDIO ... LASI_AUDIO + 0xFF:
case LASI_UART:
case LASI_LAN:
case LASI_LAN + 12: /* LASI LAN MAC */
@@ -87,6 +86,13 @@ static MemTxResult lasi_chip_read_with_attrs(void *opaque, hwaddr addr,
val = s->iar;
break;
+ case LASI_AUDIO ... LASI_AUDIO + 0xFF:
+ /*
+ * Harmony audio not yet emulated. DIAG (0x3c) reports a running
+ * sample clock, which HP-UX 9 checks before using the beeper.
+ */
+ val = (addr == LASI_AUDIO + 0x3c);
+ break;
case LASI_LPT:
case LASI_UART:
case LASI_LAN:
@@ -158,9 +164,8 @@ static MemTxResult lasi_chip_write_with_attrs(void *opaque, hwaddr addr,
case LASI_LPT:
/* XXX: reset parallel port */
break;
- case LASI_AUDIO:
- case LASI_AUDIO + 4:
- /* XXX: reset audio port */
+ case LASI_AUDIO ... LASI_AUDIO + 0xFF:
+ /* XXX: Harmony audio is not emulated */
break;
case LASI_UART:
/* XXX: reset serial port */
--
2.54.0
next prev parent reply other threads:[~2026-10-27 21:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 21:52 [PATCH 0/8] HPPA architecture patches for HP-UX 9 and 715 machine Helge Deller
2026-10-27 21:52 ` [PATCH 1/8] target/hppa: restore lazy FPU context isolation Helge Deller
2026-10-27 21:52 ` [PATCH 2/8] target/hppa: Use 15 bit protection IDs on PA1.1 CPUs Helge Deller
2026-10-27 21:52 ` [PATCH 3/8] target/hppa: Only allow 8 BTLB entries for HP-UX 9.05 Helge Deller
2026-10-27 21:52 ` [PATCH 4/8] target/hppa: Implement local broadcast I/O space Helge Deller
2026-10-27 21:52 ` [PATCH 5/8] target/hppa: Preload I/O-space BTLB entries for LASI and the central bus Helge Deller
2026-10-27 21:52 ` [PATCH 6/8] artist: Redraw screen on colormap changes Helge Deller
2026-10-27 21:52 ` Helge Deller [this message]
2026-10-27 21:52 ` [PATCH 8/8] target/hppa: Map CPUs at same addresses as on physical machines Helge Deller
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=20261027215209.21150-8-deller@kernel.org \
--to=deller@kernel.org \
--cc=deller@gmx.de \
--cc=keith@techtravels.org \
--cc=kirill@korins.ky \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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.