aboutsummaryrefslogtreecommitdiff
path: root/hw/lm32/milkymist.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-01-30 13:00:05 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-01 11:58:50 +0100
commit70cc0c1fb0b7b7bc185ca4a233e215ef44f35913 (patch)
treee27600fffa8afa5da73c536cd1d63c6b80f8023d /hw/lm32/milkymist.c
parent57d434407adc967a696d7afad0cc32f8f7eb4a4f (diff)
hw/display/milkymist-tmu2: Move inlined code from header to source
Move the complexity of milkymist_tmu2_create() into the source file. Doing so we avoid to include the X11/OpenGL headers in all LM32 devices, and we also avoid the duplicate declaration of glx_fbconfig_attr[] (it is already declared in hw/display/milkymist-tmu2.c). Since TYPE_MILKYMIST_TMU2 is now accessible, use it. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190130120005.23123-5-philmd@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/lm32/milkymist.c')
-rw-r--r--hw/lm32/milkymist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/lm32/milkymist.c b/hw/lm32/milkymist.c
index 63c6894c95..26a2398354 100644
--- a/hw/lm32/milkymist.c
+++ b/hw/lm32/milkymist.c
@@ -32,6 +32,7 @@
#include "hw/loader.h"
#include "elf.h"
#include "milkymist-hw.h"
+#include "hw/display/milkymist_tmu2.h"
#include "lm32.h"
#include "exec/address-spaces.h"