|
@@ -410,6 +410,7 @@ static uint64_t tcx_dac_readl(void *opaque, hwaddr addr,
|
|
case 2:
|
|
case 2:
|
|
val = s->b[s->dac_index] << 24;
|
|
val = s->b[s->dac_index] << 24;
|
|
s->dac_index = (s->dac_index + 1) & 0xff; /* Index autoincrement */
|
|
s->dac_index = (s->dac_index + 1) & 0xff; /* Index autoincrement */
|
|
|
|
+ /* fall through */
|
|
default:
|
|
default:
|
|
s->dac_state = 0;
|
|
s->dac_state = 0;
|
|
break;
|
|
break;
|
|
@@ -451,6 +452,7 @@ static void tcx_dac_writel(void *opaque, hwaddr addr, uint64_t val,
|
|
s->b[index] = val >> 24;
|
|
s->b[index] = val >> 24;
|
|
update_palette_entries(s, index, index + 1);
|
|
update_palette_entries(s, index, index + 1);
|
|
s->dac_index = (s->dac_index + 1) & 0xff; /* Index autoincrement */
|
|
s->dac_index = (s->dac_index + 1) & 0xff; /* Index autoincrement */
|
|
|
|
+ /* fall through */
|
|
default:
|
|
default:
|
|
s->dac_state = 0;
|
|
s->dac_state = 0;
|
|
break;
|
|
break;
|