A64/location_descriptor: Ensure FZ16 is included in the FPCR mask

This commit is contained in:
Merry 2019-04-13 08:04:39 -04:00 committed by MerryMage
parent 9a58c3f1c7
commit 1b6520f5dd

View file

@ -25,7 +25,7 @@ namespace Dynarmic::A64 {
class LocationDescriptor { class LocationDescriptor {
public: public:
static constexpr u64 PC_MASK = 0x00FF'FFFF'FFFF'FFFFull; static constexpr u64 PC_MASK = 0x00FF'FFFF'FFFF'FFFFull;
static constexpr u32 FPCR_MASK = 0x07C0'0000; static constexpr u32 FPCR_MASK = 0x07C8'0000;
LocationDescriptor(u64 pc, FP::FPCR fpcr) : pc(pc & PC_MASK), fpcr(fpcr.Value() & FPCR_MASK) {} LocationDescriptor(u64 pc, FP::FPCR fpcr) : pc(pc & PC_MASK), fpcr(fpcr.Value() & FPCR_MASK) {}