diff options
author | blueswir1 | 2007-04-21 21:45:49 +0200 |
---|---|---|
committer | blueswir1 | 2007-04-21 21:45:49 +0200 |
commit | eee0b8367b01ff1bbe6159212a8d33ff587fc200 (patch) | |
tree | 3b11c08895e149ee01f0338bd2b435b72562e530 /hw/sun4m.c | |
parent | Fix keyboard serial and mouse bugs (diff) | |
download | qemu-eee0b8367b01ff1bbe6159212a8d33ff587fc200.tar.gz qemu-eee0b8367b01ff1bbe6159212a8d33ff587fc200.tar.xz qemu-eee0b8367b01ff1bbe6159212a8d33ff587fc200.zip |
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.c | 6 |
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) { |