A32/location_descriptor: Add AHP bit to the FPSCR mask

Ensures the alternate half-precision state is preserved within the
location descriptors, which will be necessary when implementing the
half-precision extensions for VFP and NEON.
This commit is contained in:
Lioncash 2019-05-03 15:55:22 -04:00 committed by MerryMage
parent c6e1fd1416
commit d02a4e6fc9
2 changed files with 7 additions and 6 deletions

View file

@ -26,7 +26,7 @@ class LocationDescriptor {
public:
// Indicates bits that should be preserved within descriptors.
static constexpr u32 CPSR_MODE_MASK = 0x00000220;
static constexpr u32 FPSCR_MODE_MASK = 0x03F79F00;
static constexpr u32 FPSCR_MODE_MASK = 0x07F79F00;
LocationDescriptor(u32 arm_pc, PSR cpsr, FPSCR fpscr)
: arm_pc(arm_pc), cpsr(cpsr.Value() & CPSR_MODE_MASK), fpscr(fpscr.Value() & FPSCR_MODE_MASK) {}