sm501: Do not clear read only bits when writing registers
commit2100b6b21ef9c64a3cca1582dbd573c17c97bc4a
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 14 Jun 2018 00:17:00 +0000 (14 02:17 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 16 Jun 2018 06:32:33 +0000 (16 16:32 +1000)
tree3eab96f721706b9b5c8a9edcbb4f0aa625136c62
parentb6c7e42f74ab244545e157a0f90a31c70a66f3eb
sm501: Do not clear read only bits when writing registers

When writing registers that have read only bits we have to avoid
changing these bits as they may have non zero values. Make sure we use
the correct masks to mask out read only and reserved bits when
changing registers.

Also remove extra spaces from dram_control and arbitration_control
assignments.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/display/sm501.c