mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-08 05:59:08 +01:00
Merge pull request #2435 from mailwl/gsp-mask
GSP::WriteHWRegsWithMask: fix register mask
This commit is contained in:
commit
16a3f9e393
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ static ResultCode WriteHWRegsWithMask(u32 base_address, u32 size_in_bytes, VAddr
|
||||||
u32 mask = Memory::Read32(masks_vaddr);
|
u32 mask = Memory::Read32(masks_vaddr);
|
||||||
|
|
||||||
// Update the current value of the register only for set mask bits
|
// Update the current value of the register only for set mask bits
|
||||||
reg_value = (reg_value & ~mask) | (data | mask);
|
reg_value = (reg_value & ~mask) | (data & mask);
|
||||||
|
|
||||||
WriteSingleHWReg(base_address, reg_value);
|
WriteSingleHWReg(base_address, reg_value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue