aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-21 19:45:49 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-21 19:45:49 +0000
commiteee0b8367b01ff1bbe6159212a8d33ff587fc200 (patch)
tree3b11c08895e149ee01f0338bd2b435b72562e530 /hw/sun4m.c
parentb9652ca3a5c027f8bc55323e0f6010f641479255 (diff)
TCX 24 bit model support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2710 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index f371278735..c24e52aadd 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -234,8 +234,12 @@ static void sun4m_hw_init(const struct hwdef *hwdef, int ram_size,
dma = sparc32_dma_init(hwdef->dma_base, slavio_irq[hwdef->esp_irq],
slavio_irq[hwdef->le_irq], iommu);
+ if (graphic_depth != 8 && graphic_depth != 24) {
+ fprintf(stderr, "qemu: Unsupported depth: %d\n", graphic_depth);
+ exit (1);
+ }
tcx_init(ds, hwdef->tcx_base, phys_ram_base + ram_size, ram_size,
- hwdef->vram_size, graphic_width, graphic_height);
+ hwdef->vram_size, graphic_width, graphic_height, graphic_depth);
if (nd_table[0].vlan) {
if (nd_table[0].model == NULL
|| strcmp(nd_table[0].model, "lance") == 0) {