Skip to content

RFC target/m68k: convert to transaction_failed hook

Peter Maydell qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target/m68k: In dump_address_map() check for memory access failurestarget/m68k/helper.c+15 -71 reply
2/3target/m68k: In get_physical_address() check for memory access failurestarget/m68k/helper.c+52 -101 reply
3/3target/m68k: Switch to transaction_failed hooktarget/m68k/cpu.c target/m68k/cpu.h target/m68k/op_helper.c+13 -161 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLaurent Vivier
SeriesT-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 0/3] target/m68k: convert to transaction_failed hook

This patchset converts the m68k target from the deprecated unassigned_access hook to the new transaction_failed hook. It's RFC for a couple of reasons:
* it's untested, since I don't have an m68k test image
* the second patch just makes "bus error while trying to read page tables" be treated as a page fault, when it should probably cause a fault reporting it as a bus error of some kind
* I don't understand why the old unassigned_access hook set the ATC bit in the MMU SSW, since the docs I have say this should be set if the fault happened during a table search, but cleared if it's just an ordinary bus-errored data or insn access. Probably this is a pre-existing bug?

Anyway, I send it out as a skeleton for comments, because it would be nice to get rid of the old unassigned_access hook, which is fundamentally broken (it's still used by m68k, microblaze, mips and sparc).

thanks
-- PMM

Peter Maydell (3):
target/m68k: In dump_address_map() check for memory access failures target/m68k: In get_physical_address() check for memory access
failures
target/m68k: Switch to transaction_failed hook

 target/m68k/cpu.h       |  7 ++--
 target/m68k/cpu.c       |  2 +-
 target/m68k/helper.c    | 84 ++++++++++++++++++++++++++++++++---------
 target/m68k/op_helper.c | 20 ++++------
 4 files changed, 80 insertions(+), 33 deletions(-)
Signature · 1 line
2.19.2