qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thoughts on removing the TARGET_I386 part of hw/display/vga/vbe_port


From: Philippe Mathieu-Daudé
Subject: Re: Thoughts on removing the TARGET_I386 part of hw/display/vga/vbe_portio_list[]
Date: Tue, 6 Dec 2022 17:09:14 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 6/12/22 15:38, Gerd Hoffmann wrote:
   Hi,

So on x86 we can have 16-bit I/O accesses unaligned to 8-bit boundary?

Yes.

So I _think_ today we should be good with removing the x86 line:

-# ifdef TARGET_I386
-    { 1, 1, 2, .read = vbe_ioport_read_data, .write = vbe_ioport_write_data },
-# endif

Nope.  Breaks vgabios.  Testcase:

qemu-system-x86_64 -kernel /boot/vmlinuz-$(uname -r) -append vga=ask

Adding

 -trace memory_region_ops_\*

I get:

memory_region_ops_write cpu 0 mr 0x13eefbf60 addr 0x1ce value 0x0 size 2 name 'vbe' memory_region_ops_write cpu 0 mr 0x13eefbf60 addr 0x1cf value 0xb0c0 size 2 name 'vbe' memory_region_ops_write cpu 0 mr 0x13eefbf60 addr 0x1ce value 0x0 size 2 name 'vbe' memory_region_ops_read cpu 0 mr 0x13eefbf60 addr 0x1cf value 0xffff size 2 name 'vbe'

All graphics modes are gone.

Yeah I'll investigate, thanks for the easy test case.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]