From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, afaerber@suse.de, aliguori@amazon.com
Subject: [Qemu-devel] [PATCH 00/23] qom hooks to clean up cpu_exec
Date: Sat, 13 Sep 2014 09:45:11 -0700 [thread overview]
Message-ID: <1410626734-3804-1-git-send-email-rth@twiddle.net> (raw)
Prompted by trying to review Martin's ARM exception vs gdb
problems, let's clean up cpu_exec so that it's almost readable.
After the 23 patches, there's one (interesting) ifdef left.
That is, i386 redefining CPU_INTERRUPT_RESET as CPU_INTERRUPT_INIT
for its own purposes. I'm not sure why all that couldn't be done
under whatever hooks cpu_reset allows. Failing that, we might be
able to redefine C_I_I as a new CPU_INTERRUPT_TGT_INT_3 bit.
I've done some smoke tests on i386, arm, xtensa, because I had
images handy. But I've not done anything but compile the rest.
Comments appreciated.
r~
Richard Henderson (23):
qom: Add cpu_exec_enter and cpu_exec_exit hooks
cpu-exec: Remove do-nothing ifdef chains
target-i386: Use cpu_exec_enter/exit qom hooks
target-m68k: Use cpu_exec_enter/exit qom hooks
target-ppc: Use cpu_exec_enter qom hook
qom: Add cpu_exec_interrupt hook
target-xtensa: Use cpu_exec_interrupt qom hook
target-s390x: Use cpu_exec_interrupt qom hook
target-m68k: Use cpu_exec_interrupt qom hook
target-cris: Use cpu_exec_interrupt qom hook
target-alpha: Use cpu_exec_interrupt qom hook
target-sh4: Use cpu_exec_interrupt qom hook
target-unicore32: Use cpu_exec_interrupt qom hook
target-arm: Use cpu_exec_interrupt qom hook
target-sparc: Use cpu_exec_interrupt qom hook
target-openrisc: Use cpu_exec_interrupt qom hook
target-tricore: Remove the dummy interrupt boilerplate
target-mips: Use cpu_exec_interrupt qom hook
target-microblaze: Use cpu_exec_interrupt qom hook
target-lm32: Use cpu_exec_interrupt qom hook
target-ppc: Use cpu_exec_interrupt qom hook
target-i386: Use cpu_exec_interrupt qom hook
cpu-exec: Do CPU_INTERRUPT_HALT unconditionally
cpu-exec.c | 329 ++------------------------------------------
include/qom/cpu.h | 7 +
qom/cpu.c | 12 +-
target-alpha/cpu-qom.h | 1 +
target-alpha/cpu.c | 1 +
target-alpha/helper.c | 44 ++++++
target-arm/cpu-qom.h | 1 +
target-arm/cpu.c | 34 +++++
target-arm/cpu64.c | 1 +
target-cris/cpu-qom.h | 1 +
target-cris/cpu.c | 1 +
target-cris/helper.c | 31 +++++
target-i386/cpu-qom.h | 4 +
target-i386/cpu.c | 3 +
target-i386/helper.c | 21 +++
target-i386/seg_helper.c | 69 ++++++++++
target-lm32/cpu-qom.h | 1 +
target-lm32/cpu.c | 1 +
target-lm32/helper.c | 13 ++
target-m68k/cpu-qom.h | 4 +
target-m68k/cpu.c | 4 +
target-m68k/cpu.h | 1 -
target-m68k/helper.c | 20 +++
target-m68k/op_helper.c | 22 ++-
target-microblaze/cpu-qom.h | 1 +
target-microblaze/cpu.c | 1 +
target-microblaze/helper.c | 16 +++
target-mips/cpu-qom.h | 1 +
target-mips/cpu.c | 1 +
target-mips/helper.c | 17 +++
target-openrisc/cpu.c | 1 +
target-openrisc/cpu.h | 1 +
target-openrisc/interrupt.c | 20 +++
target-ppc/cpu-qom.h | 1 +
target-ppc/cpu.h | 1 -
target-ppc/excp_helper.c | 19 ++-
target-ppc/translate_init.c | 10 ++
target-s390x/cpu-qom.h | 1 +
target-s390x/cpu.c | 1 +
target-s390x/helper.c | 13 ++
target-sh4/cpu-qom.h | 1 +
target-sh4/cpu.c | 1 +
target-sh4/helper.c | 9 ++
target-sparc/cpu.c | 21 +++
target-tricore/cpu-qom.h | 1 -
target-tricore/cpu.c | 1 -
target-tricore/cpu.h | 2 -
target-tricore/helper.c | 4 -
target-unicore32/cpu-qom.h | 1 +
target-unicore32/cpu.c | 1 +
target-unicore32/helper.c | 15 ++
target-xtensa/cpu-qom.h | 1 +
target-xtensa/cpu.c | 1 +
target-xtensa/helper.c | 10 ++
54 files changed, 464 insertions(+), 336 deletions(-)
--
1.9.3
next reply other threads:[~2014-09-13 16:45 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-13 16:45 Richard Henderson [this message]
2014-09-13 16:45 ` [Qemu-devel] [PATCH 01/23] qom: Add cpu_exec_enter and cpu_exec_exit hooks Richard Henderson
2014-09-14 19:35 ` Alex Bennée
2014-09-17 11:54 ` Andreas Färber
2014-09-17 15:22 ` Richard Henderson
2014-09-25 18:03 ` Peter Maydell
2014-09-13 16:45 ` [Qemu-devel] [PATCH 02/23] cpu-exec: Remove do-nothing ifdef chains Richard Henderson
2014-09-14 19:36 ` Alex Bennée
2014-09-13 16:45 ` [Qemu-devel] [PATCH 03/23] target-i386: Use cpu_exec_enter/exit qom hooks Richard Henderson
2014-09-14 19:38 ` Alex Bennée
2014-09-13 16:45 ` [Qemu-devel] [PATCH 04/23] target-m68k: " Richard Henderson
2014-09-14 19:40 ` Alex Bennée
2014-09-13 16:45 ` [Qemu-devel] [PATCH 05/23] target-ppc: Use cpu_exec_enter qom hook Richard Henderson
2014-09-14 19:43 ` Alex Bennée
2014-09-15 1:16 ` Peter Maydell
2014-09-13 16:45 ` [Qemu-devel] [PATCH 06/23] qom: Add cpu_exec_interrupt hook Richard Henderson
2014-09-16 4:14 ` Max Filippov
2014-09-16 18:09 ` Alex Bennée
2014-09-13 16:45 ` [Qemu-devel] [PATCH 07/23] target-xtensa: Use cpu_exec_interrupt qom hook Richard Henderson
2014-09-16 4:13 ` Max Filippov
2014-09-16 18:18 ` Alex Bennée
2014-09-16 19:11 ` Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 08/23] target-s390x: " Richard Henderson
2014-09-16 18:41 ` Alex Bennée
2014-09-13 16:45 ` [Qemu-devel] [PATCH 09/23] target-m68k: " Richard Henderson
2014-09-16 18:41 ` Alex Bennée
2014-09-13 16:45 ` [Qemu-devel] [PATCH 10/23] target-cris: " Richard Henderson
2014-09-16 10:35 ` Edgar E. Iglesias
2014-09-13 16:45 ` [Qemu-devel] [PATCH 11/23] target-alpha: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 12/23] target-sh4: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 13/23] target-unicore32: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 14/23] target-arm: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 15/23] target-sparc: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 16/23] target-openrisc: " Richard Henderson
2014-09-16 3:59 ` Jia Liu
2014-09-13 16:45 ` [Qemu-devel] [PATCH 17/23] target-tricore: Remove the dummy interrupt boilerplate Richard Henderson
2014-09-21 7:36 ` Bastian Koppelmann
2014-09-13 16:45 ` [Qemu-devel] [PATCH 18/23] target-mips: Use cpu_exec_interrupt qom hook Richard Henderson
2014-09-15 11:09 ` Leon Alrae
2014-09-13 16:45 ` [Qemu-devel] [PATCH 19/23] target-microblaze: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 20/23] target-lm32: " Richard Henderson
2014-09-14 18:35 ` Michael Walle
2014-09-13 16:45 ` [Qemu-devel] [PATCH 21/23] target-ppc: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 22/23] target-i386: " Richard Henderson
2014-09-13 16:45 ` [Qemu-devel] [PATCH 23/23] cpu-exec: Do CPU_INTERRUPT_HALT unconditionally Richard Henderson
2014-09-26 10:45 ` [Qemu-devel] [PATCH 00/23] qom hooks to clean up cpu_exec Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2014-09-13 16:44 Richard Henderson
2014-09-13 20:03 ` Paolo Bonzini
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=1410626734-3804-1-git-send-email-rth@twiddle.net \
--to=rth@twiddle.net \
--cc=afaerber@suse.de \
--cc=aliguori@amazon.com \
--cc=peter.maydell@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).