Remove the register mask on DP_GUI_MASTER_CNTL writes. Masking on writes
is usually used to exclude reserved fields. This register contains no
reserved fields. All of the fields are important, even if not yet fully
implemented.

Signed-off-by: Chad Jablonski <[email protected]>
---
 hw/display/ati.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/display/ati.c b/hw/display/ati.c
index d0fa51f773..cfb5dc2fb8 100644
--- a/hw/display/ati.c
+++ b/hw/display/ati.c
@@ -883,7 +883,7 @@ static void ati_mm_write(void *opaque, hwaddr addr,
         ati_2d_blt(s);
         break;
     case DP_GUI_MASTER_CNTL:
-        s->regs.dp_gui_master_cntl = data & 0xf800000f;
+        s->regs.dp_gui_master_cntl = data;
         s->regs.dp_datatype = (data & 0x0f00) >> 8 | (data & 0x30f0) << 4 |
                               (data & 0x4000) << 16;
         s->regs.dp_mix = (data & GMC_ROP3_MASK) | (data & 0x7000000) >> 16;
-- 
2.51.0


Reply via email to