[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT a46007a] vga and cirrus_vga: substitute switch fo
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT a46007a] vga and cirrus_vga: substitute switch for equivalentassigntment |
Date: |
Wed, 09 Sep 2009 22:36:40 -0000 |
From: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index b2b6e85..f247304 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -2874,20 +2874,7 @@ static void cirrus_vga_ioport_write(void *opaque,
uint32_t addr, uint32_t val)
s->cr[7] = (s->cr[7] & ~0x10) | (val & 0x10);
return;
}
- switch (s->cr_index) {
- case 0x01: /* horizontal display end */
- case 0x07:
- case 0x09:
- case 0x0c:
- case 0x0d:
- case 0x12: /* vertical display end */
- s->cr[s->cr_index] = val;
- break;
-
- default:
- s->cr[s->cr_index] = val;
- break;
- }
+ s->cr[s->cr_index] = val;
switch(s->cr_index) {
case 0x00:
diff --git a/hw/vga.c b/hw/vga.c
index 0d4e558..ff97aa7 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -488,19 +488,7 @@ void vga_ioport_write(void *opaque, uint32_t addr,
uint32_t val)
s->cr[7] = (s->cr[7] & ~0x10) | (val & 0x10);
return;
}
- switch(s->cr_index) {
- case 0x01: /* horizontal display end */
- case 0x07:
- case 0x09:
- case 0x0c:
- case 0x0d:
- case 0x12: /* vertical display end */
- s->cr[s->cr_index] = val;
- break;
- default:
- s->cr[s->cr_index] = val;
- break;
- }
+ s->cr[s->cr_index] = val;
switch(s->cr_index) {
case 0x00:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT a46007a] vga and cirrus_vga: substitute switch for equivalentassigntment,
Anthony Liguori <=