aboutsummaryrefslogtreecommitdiff
path: root/hw/mips
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-10-23 17:50:06 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-07 17:23:30 +0400
commit490a9d9b36bfa22a6b46b27e6e9e84e1bac44c68 (patch)
tree43f06f0768176835bf5eff8911687c9721e3fb1e /hw/mips
parentb9975000a008c5b0801e3d24ed113a1bd2767ed5 (diff)
downloadqemu-490a9d9b36bfa22a6b46b27e6e9e84e1bac44c68.zip
qemu-490a9d9b36bfa22a6b46b27e6e9e84e1bac44c68.tar.gz
qemu-490a9d9b36bfa22a6b46b27e6e9e84e1bac44c68.tar.bz2
serial: start making SerialMM a sysbus device
Memory mapped serial device is in fact a sysbus device. The following patches will make use of sysbus facilities for resource and registration. In particular, "serial-mm: use sysbus facilities" will move internal serial realization to serial_mm_realize callback to follow qdev best practices. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/mips')
-rw-r--r--hw/mips/boston.c2
-rw-r--r--hw/mips/mips_malta.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/mips/boston.c b/hw/mips/boston.c
index ca7d813..23fdd5e 100644
--- a/hw/mips/boston.c
+++ b/hw/mips/boston.c
@@ -50,7 +50,7 @@ typedef struct {
MachineState *mach;
MIPSCPSState cps;
- SerialState *uart;
+ SerialMM *uart;
CharBackend lcd_display;
char lcd_content[8];
diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c
index 783cd99..ea92e5e 100644
--- a/hw/mips/mips_malta.c
+++ b/hw/mips/mips_malta.c
@@ -83,7 +83,7 @@ typedef struct {
uint32_t i2csel;
CharBackend display;
char display_text[9];
- SerialState *uart;
+ SerialMM *uart;
bool display_inited;
} MaltaFPGAState;