bochs: add endian switching support
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Nov 2014 11:28:10 +0000 (12:28 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Nov 2014 01:26:54 +0000 (11:26 +1000)
commit9ecdb039b7517dc10b8c3e6dbeb40859178ac28e
treeccfa96d234aba069be442c9569ed3226f132045d
parentfbd2f9fe97726944f98d9a5813d08372446b6a37
bochs: add endian switching support

Recently (qemu 2.2+) the qemu stdvga got a register to switch the vga
framebuffer endianness.  This patch adds code to explicitly set the
endianness of the framebuffer.  In most cases this has no effect as
the default is guest architecture endianness.  It is needed though in
case a architecture supports both big and little endian, i.e. for
ppc64le.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/bochs/bochs_hw.c