From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: patches@linaro.org, Laurent Vivier <laurent@vivier.eu>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Subject: [Qemu-devel] [RFC 0/3] target/m68k: convert to transaction_failed hook
Date: Mon, 10 Dec 2018 16:56:33 +0000 [thread overview]
Message-ID: <20181210165636.28366-1-peter.maydell@linaro.org> (raw)
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(-)
--
2.19.2
next reply other threads:[~2018-12-10 16:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 16:56 Peter Maydell [this message]
2018-12-10 16:56 ` [Qemu-devel] [RFC 1/3] target/m68k: In dump_address_map() check for memory access failures Peter Maydell
2019-05-03 16:40 ` Laurent Vivier
2019-05-03 16:40 ` Laurent Vivier
2018-12-10 16:56 ` [Qemu-devel] [RFC 2/3] target/m68k: In get_physical_address() " Peter Maydell
2019-05-03 16:46 ` Laurent Vivier
2019-05-03 16:46 ` Laurent Vivier
2018-12-10 16:56 ` [Qemu-devel] [RFC 3/3] target/m68k: Switch to transaction_failed hook Peter Maydell
2019-05-03 16:55 ` Laurent Vivier
2019-05-03 16:55 ` Laurent Vivier
2018-12-11 8:42 ` [Qemu-devel] [RFC 0/3] target/m68k: convert " Thomas Huth
2018-12-11 19:13 ` Mark Cave-Ayland
2018-12-11 19:29 ` Peter Maydell
2018-12-12 20:43 ` Laurent Vivier
2019-05-03 14:16 ` Peter Maydell
2019-05-03 14:16 ` Peter Maydell
2019-05-03 17:12 ` Laurent Vivier
2019-05-03 17:12 ` Laurent Vivier
2019-05-16 13:26 ` Peter Maydell
2019-05-16 13:36 ` Laurent Vivier
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=20181210165636.28366-1-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=laurent@vivier.eu \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=patches@linaro.org \
--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 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).