qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] target/i386: Reorg push/pop within seg_helper.c
@ 2024-06-17 16:12 Richard Henderson
  2024-06-17 16:12 ` [PATCH 1/3] target/i386: Introduce x86_mmu_index_{kernel_,}pl Richard Henderson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Richard Henderson @ 2024-06-17 16:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini

Hi Paolo,

Thanks for offering to do the work to fix the memory access issues
identified by Robert.

Here is a code dump from this weekend that I noodled with -- it is
prep work only, not intending to change any semantics, but it may
be helpful in finishing the work.

I considered adding a MemOp member to the structure, which would
allow the push/pop subroutine to choose the correct access width,
which would allow the callers to stop having 3 nearly identical
code paths.  But I didn't quite get that far, and I don't yet
know if that would really work out wrt long-mode.

Anyway, please you what you like, or not.


r~


Richard Henderson (3):
  target/i386: Introduce x86_mmu_index_{kernel_,}pl
  target/i386: Remove SEG_ADDL
  target/i386: Reorg push/pop within seg_helper.c

 target/i386/cpu.h            |  12 +-
 target/i386/cpu.c            |  27 +-
 target/i386/tcg/seg_helper.c | 469 +++++++++++++++++++----------------
 3 files changed, 280 insertions(+), 228 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-06-17 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17 16:12 [RFC PATCH 0/3] target/i386: Reorg push/pop within seg_helper.c Richard Henderson
2024-06-17 16:12 ` [PATCH 1/3] target/i386: Introduce x86_mmu_index_{kernel_,}pl Richard Henderson
2024-06-17 16:12 ` [PATCH 2/3] target/i386: Remove SEG_ADDL Richard Henderson
2024-06-17 16:12 ` [PATCH 3/3] target/i386: Reorg push/pop within seg_helper.c Richard Henderson
2024-06-17 20:07 ` [RFC PATCH 0/3] " Paolo Bonzini

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