qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5] target-arm: Avoid passing CPUARMState around the decoder
@ 2014-10-28 19:23 Peter Maydell
  2014-10-28 19:24 ` [Qemu-devel] [PATCH 1/5] target-arm/translate.c: Use arm_dc_feature() in ENABLE_ARCH_ macros Peter Maydell
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Peter Maydell @ 2014-10-28 19:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: patches

This is a set of cleanup patches which avoid passing CPUARMState
around the decoder unnecessarily, since we were pretty much only
using it to check feature bits, which we now also have in the
DisasContext structure.

We still pass CPUARMState into disas_thumb_insn() and disas_thumb2_insn()
purely so they can read the instruction with arm_lduw_code(). I couldn't
think of a good way to approach this since you basically don't know
if you're going to need to load the second halfword until a long way
into the decode. Still, keeping the env pointer out of all the ARM,
VFP and Neon decode seems like a good first step.


Peter Maydell (5):
  target-arm/translate.c: Use arm_dc_feature() in ENABLE_ARCH_ macros
  target-arm/translate.c: Use arm_dc_feature() rather than arm_feature()
  target-arm/translate.c: Don't use IS_M()
  target-arm/translate.c: Don't pass CPUARMState around in the decoder
  target-arm/translate.c: Don't pass CPUARMState * to disas_arm_insn()

 target-arm/translate.c | 280 +++++++++++++++++++++++++++----------------------
 1 file changed, 154 insertions(+), 126 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-11-04 12:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 19:23 [Qemu-devel] [PATCH 0/5] target-arm: Avoid passing CPUARMState around the decoder Peter Maydell
2014-10-28 19:24 ` [Qemu-devel] [PATCH 1/5] target-arm/translate.c: Use arm_dc_feature() in ENABLE_ARCH_ macros Peter Maydell
2014-10-31 13:09   ` Alex Bennée
2014-11-04  9:04   ` Claudio Fontana
2014-11-04 12:04     ` Peter Maydell
2014-10-28 19:24 ` [Qemu-devel] [PATCH 2/5] target-arm/translate.c: Use arm_dc_feature() rather than arm_feature() Peter Maydell
2014-10-31 13:40   ` Alex Bennée
2014-11-04  9:02   ` Claudio Fontana
2014-10-28 19:24 ` [Qemu-devel] [PATCH 3/5] target-arm/translate.c: Don't use IS_M() Peter Maydell
2014-10-31 13:42   ` Alex Bennée
2014-11-04  0:38     ` Peter Maydell
2014-11-04  8:59   ` Claudio Fontana
2014-10-28 19:24 ` [Qemu-devel] [PATCH 4/5] target-arm/translate.c: Don't pass CPUARMState around in the decoder Peter Maydell
2014-10-31 13:43   ` Alex Bennée
2014-11-04  8:57   ` Claudio Fontana
2014-10-28 19:24 ` [Qemu-devel] [PATCH 5/5] target-arm/translate.c: Don't pass CPUARMState * to disas_arm_insn() Peter Maydell
2014-10-31 13:47   ` Alex Bennée
2014-11-04  0:40     ` Peter Maydell
2014-11-04  8:55   ` Claudio Fontana

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).