]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/alpha: Redefine fpcr with fpcr_flags type
authorYodel Eldar <yodel.eldar@gmail.com>
Mon, 26 May 2025 15:12:19 +0000 (10:12 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 2 Jul 2025 17:10:17 +0000 (13:10 -0400)
commit8ceec7b520172a962efa07a3f4046a8daae9c2f1
tree9c3a9e164923ffc02f2d099b77c5825b7b810630
parentfb2b625650ec78f7d46b357468d8fcef4990635e
gdb/alpha: Redefine fpcr with fpcr_flags type

This commit adds fpcr_flags and dyn_rm_enum types to define the fpcr.

For details on the floating-point control register (fpcr), please see
the Alpha Architecture Reference Manual, 4th Ed. [1]; in brief, it
consists of a 64-bit bitfield with most bits reserved/unused. All but a
pair of the used bits are boolean flags; the exception, DYN_RM, is a
2-bit enum indicating the IEEE rounding mode and is defined as a
dyn_rm_enum type in the target description annex.

[1] https://archive.org/details/dec-alpha_arch_ref

Approved-By: Simon Marchi <simon.marchi@efficios.com>
Change-Id: Iea54c9e201faae6147a03de124b0368752bce060
gdb/features/alpha-core.xml
gdb/features/alpha.c