All of lore.kernel.org
 help / color / mirror / Atom feed
From: 54weasels <54weasels@gmail.com>
To: qemu-devel@nongnu.org
Cc: laurent@vivier.eu, balaton@eik.bme.hu, 54weasels <54weasels@gmail.com>
Subject: [PATCH v5 0/6] Implement missing functionality and hooks in m68k to support upcoming Sun-3 implementation
Date: Wed,  2 Sep 2026 21:45:13 -0700	[thread overview]
Message-ID: <20260903044626.24453-1-54weasels@gmail.com> (raw)

This series adds M68020/030-specific features to the m68k target that
are required by the Sun-3 machine (series C) and its PROM/SunOS guests:

  1/6: CAAR register stub for 68020/030 cache control
  2/6: fsave/frestore fix for 68881 (non-68040) FPU frames
  3/6: Edge-triggered NMI semantics for Level 7 interrupts
  4/6: Function code extraction during TLB fills
  5/6: Custom MMU intercept hook for Sun-3 transparent translation
  6/6: Physical Bus Error and M68020 Format 0xB stack frames

Changes since v4:
  - Added Signed-off-by to all patches.
  - Patch 2/6 (fsave): Addressed Zoltan's review — replaced redundant
    M68040||FPU check with just M68K_FEATURE_FPU, removed unnecessary
    if/else in frestore, moved Context: below --- separator.
  - Patch 3/6 (NMI): Addressed Zoltan's review — nmi_pending cannot be
    replaced by testing pending_level == 7. The flag captures the edge
    transition (level < 7 → 7) required by Motorola's NMI specification,
    while pending_level only reflects the current interrupt level.
    Testing pending_level alone would produce level-triggered behavior,
    firing on every interrupt check rather than once per edge.
  - Rebased on current master.

54weasels (6):
  target/m68k: Add dummy CAAR register
  target/m68k: Fix fsave/frestore for 68881 FPU
  target/m68k: Fix NMI pending for Level 7 interrupts
  target/m68k: Extract Function Codes during TLB fills
  target/m68k: Implement custom MMU intercept hook
  target/m68k: Implement Physical Bus Error and Stack

 target/m68k/cpu.c       |   4 +-
 target/m68k/cpu.h       |  21 ++++-
 target/m68k/helper.c    | 130 ++++++++++++++++++++++++++++-
 target/m68k/op_helper.c | 175 ++++++++++++++++++++++++++--------------
 target/m68k/translate.c |  30 ++++---
 5 files changed, 280 insertions(+), 80 deletions(-)

-- 
2.50.1 (Apple Git-155)



             reply	other threads:[~2026-09-03  4:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03  4:45 54weasels [this message]
2026-09-03  4:45 ` [PATCH v5 1/6] target/m68k: Add dummy CAAR register 54weasels
2026-09-03  4:45 ` [PATCH v5 2/6] target/m68k: Fix fsave/frestore for 68881 FPU 54weasels
2026-09-03  4:45 ` [PATCH v5 3/6] target/m68k: Fix NMI pending for Level 7 interrupts 54weasels
2026-09-03  4:45 ` [PATCH v5 4/6] target/m68k: Extract Function Codes during TLB fills 54weasels
2026-09-03  4:45 ` [PATCH v5 5/6] target/m68k: Implement custom MMU intercept hook 54weasels
2026-09-03  4:45 ` [PATCH v5 6/6] target/m68k: Implement Physical Bus Error and Stack 54weasels
2026-09-09 18:54 ` [PATCH v5 0/6] Implement missing functionality and hooks in m68k to support upcoming Sun-3 implementation Purr Box

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=20260903044626.24453-1-54weasels@gmail.com \
    --to=54weasels@gmail.com \
    --cc=balaton@eik.bme.hu \
    --cc=laurent@vivier.eu \
    --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.