qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-9.2 v3 0/6] target/sparc: emulate floating point queue when raising fp traps
@ 2024-08-16  7:23 Richard Henderson
  2024-08-16  7:23 ` [PATCH v3 1/6] target/sparc: Restrict STQF to sparcv9 Richard Henderson
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Richard Henderson @ 2024-08-16  7:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: chauser

Hi Carl,

While digging through the manual to figure out if we were really
doing the right thing raising the fp exception, I found the fpu
exception state machine.  I'm not sure it's worth emulating the
fp_exception_pending state, but it's certainly easy enough to
emulate the fp_executing/fp_exception states.

In addition, this simplifies the implementation of STDFQ,
restricts FQ to sparc32 system mode, and handles migration.

Would you please double-check this against your Solaris images?


r~


Carl Hauser (2):
  target/sparc: Add FQ and FSR.QNE
  target/sparc: Populate sparc32 FQ when raising fp exception

Richard Henderson (4):
  target/sparc: Restrict STQF to sparcv9
  target/sparc: Add FSR_QNE to tb_flags
  target/sparc: Implement STDFQ
  target/sparc: Add gen_trap_if_nofpu_fpexception

 target/sparc/cpu.h          |  30 ++++++++-
 target/sparc/fop_helper.c   |   4 ++
 target/sparc/int32_helper.c |  32 ++++-----
 target/sparc/machine.c      |  25 +++++++
 target/sparc/translate.c    | 126 ++++++++++++++++++++++++++----------
 target/sparc/insns.decode   |   4 +-
 6 files changed, 169 insertions(+), 52 deletions(-)

-- 
2.43.0



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

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

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16  7:23 [PATCH for-9.2 v3 0/6] target/sparc: emulate floating point queue when raising fp traps Richard Henderson
2024-08-16  7:23 ` [PATCH v3 1/6] target/sparc: Restrict STQF to sparcv9 Richard Henderson
2024-08-16  7:58   ` Philippe Mathieu-Daudé
2024-08-16  7:23 ` [PATCH v3 2/6] target/sparc: Add FQ and FSR.QNE Richard Henderson
2024-08-16  7:23 ` [PATCH v3 3/6] target/sparc: Populate sparc32 FQ when raising fp exception Richard Henderson
2024-08-16  7:23 ` [PATCH v3 4/6] target/sparc: Add FSR_QNE to tb_flags Richard Henderson
2024-08-16  7:23 ` [PATCH v3 5/6] target/sparc: Implement STDFQ Richard Henderson
2024-08-16  7:23 ` [PATCH v3 6/6] target/sparc: Add gen_trap_if_nofpu_fpexception Richard Henderson
2024-08-16 21:19 ` [PATCH for-9.2 v3 0/6] target/sparc: emulate floating point queue when raising fp traps Carl Hauser
2024-08-16 21:46   ` Carl Hauser
2024-08-16 22:05     ` Richard Henderson
     [not found]       ` <a06ebc2a-e67b-49d9-91a8-ae2a7a1d8b9d@pullman.com>
2024-08-16 23:59         ` Richard Henderson
     [not found]       ` <aa172755-faf8-4587-a4e8-d1cbfdc139b1@pullman.com>
2024-08-17  0:16         ` Richard Henderson
     [not found]           ` <275021f0-887c-4de8-a86d-ad9abc83df95@pullman.com>
2024-08-19  2:42             ` [PATCH for-9.2 v3 0/6] target/sparc: emulate floating point queue when raising fp traps -- CORRECTION Richard Henderson
     [not found]               ` <24c5b02b-c401-4081-aa46-f745592002ca@pullman.com>
2024-08-20 22:16                 ` Richard Henderson

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