qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Are floating-point exceptions usable on AArch64?
@ 2024-09-04 10:11 Sebastian Huber
  2024-09-04 12:18 ` Peter Maydell
  2024-09-26 13:52 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Huber @ 2024-09-04 10:11 UTC (permalink / raw)
  To: qemu-devel

Hello,

I tried to provoke a division-by-zero exception on AArch64 using:

    uint64_t value;
    __asm__ volatile (
      "mrs %0, FPCR\n"
      "orr %0, %0, 0x200\n"
      "msr FPCR, %0" :  "=&r" ( value ) : : "memory"
    );
    volatile double x = 0x0;
    volatile double y = 0x0;
    x /= y;

When I look with the debugger at $fpcr it still says 0x0 after the msr. Are floating-point exceptions usable on AArch64 in general?

-- 
embedded brains GmbH & Co. KG
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


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

end of thread, other threads:[~2024-09-26 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 10:11 Are floating-point exceptions usable on AArch64? Sebastian Huber
2024-09-04 12:18 ` Peter Maydell
2024-09-26 13:52 ` Peter Maydell

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