mips-hw-next patches for 2020-05-26
The following changes since commit 8f72c75cfc9b3c84a9b5e7a58ee5e471cb2f19c8:
Merge remote-tracking branch 'remotes/kraxel/tags/audio-20200526-pull-reque=
st' into staging (2020-05-26 10:59:01 +0100)
are available in the Git repository at:
https://gitlab.com/philmd/qemu.git tags/mips-hw-next-20200526
for you to fetch changes up to 97d8974620053db5754af808583de70380f73a10:
MAINTAINERS: Change Aleksandar Rikalo's email address (2020-05-26 13:21:12 =
+0200)
----------------------------------------------------------------
MIPS hardware updates
- MAINTAINERS updated to welcome Huacai Chen and Jiaxun Yang, and update Aleksandar Rikalo's email address,
- Trivial improvements in the Bonito64 North Bridge and the Fuloong 2e machine,
- MIPS Machines names unified without 'mips_' prefix.
CI: https://travis-ci.org/github/philmd/qemu/builds/691247975
----------------------------------------------------------------
Aleksandar Markovic (3):
hw/mips: Rename malta/mipssim/r4k/jazz files hw/mips/malta: Add some logging for bad register offset cases
MAINTAINERS: Change Aleksandar Rikalo's email address
Huacai Chen (1):
MAINTAINERS: Add Huacai Chen as fuloong2e co-maintainer
Philippe Mathieu-Daud=C3=A9 (10):
hw/pci-host: Use CONFIG_PCI_BONITO to select the Bonito North Bridge hw/pci-host/bonito: Fix DPRINTF() format strings hw/pci-host/bonito: Map peripheral using physical address hw/pci-host/bonito: Map all the Bonito64 I/O range hw/pci-host/bonito: Map the different PCI ranges more detailed hw/pci-host/bonito: Better describe the I/O CS regions hw/pci-host/bonito: Set the Config register reset value with
FIELD_DP32
hw/mips/fuloong2e: Move code and update a comment hw/mips/fuloong2e: Fix typo in Fuloong machine name hw/mips/mips_int: De-duplicate KVM interrupt delivery
docs/system/deprecated.rst | 5 ++
docs/system/target-mips.rst | 2 +-
default-configs/mips64el-softmmu.mak | 2 +-
hw/isa/vt82c686.c | 2 +-
hw/mips/{mips_fulong2e.c =3D> fuloong2e.c} | 48 ++++++-------
hw/mips/{mips_jazz.c =3D> jazz.c} | 0
hw/mips/{mips_malta.c =3D> malta.c} | 14 ++--
hw/mips/mips_int.c | 11 +--
hw/mips/{mips_mipssim.c =3D> mipssim.c} | 0
hw/mips/{mips_r4k.c =3D> r4k.c} | 0
hw/pci-host/bonito.c | 87 +++++++++++++++++++-----
tests/qtest/endianness-test.c | 2 +-
.mailmap | 3 +-
MAINTAINERS | 26 +++----
hw/mips/Kconfig | 3 +-
hw/mips/Makefile.objs | 10 +--
hw/pci-host/Kconfig | 5 ++
hw/pci-host/Makefile.objs | 2 +-
18 files changed, 142 insertions(+), 80 deletions(-)
rename hw/mips/{mips_fulong2e.c =3D> fuloong2e.c} (91%)
rename hw/mips/{mips_jazz.c =3D> jazz.c} (100%)
rename hw/mips/{mips_malta.c =3D> malta.c} (99%)
rename hw/mips/{mips_mipssim.c =3D> mipssim.c} (100%)
rename hw/mips/{mips_r4k.c =3D> r4k.c} (100%)--=20
2.21.3
[PULL 01/14] MAINTAINERS: Add Huacai Chen as fuloong2e co-maintainer
From: Huacai Chen <[email protected]>
I submitted the MIPS/fuloong2e support about ten years ago, and after that I became a MIPS kernel developer. Last year, Philippe Mathieu- Daudé asked me that whether I can be a reviewer of MIPS/fuloong2e, and I promised that I will do some QEMU work in the next year (i.e., 2020 and later). I think now (and also in future) I can have some spare time, so I can finally do some real work on QEMU/MIPS. And if possible, I hope I can be a co-maintainer of MIPS/fuloong2e.
Message-Id: <[email protected]>
Message-Id: <[email protected]>
--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
@@ -1082,8 +1082,10 @@ S: Obsolete F: hw/mips/mips_r4k.c Fulong 2E +M: Huacai Chen <[email protected]> M: Philippe Mathieu-Daudé <[email protected]> M: Aleksandar Markovic <[email protected]> +R: Jiaxun Yang <[email protected]> S: Odd Fixes F: hw/mips/mips_fulong2e.c F: hw/isa/vt82c686.c
Signature · 1 line
2.21.3
[PULL 03/14] hw/pci-host/bonito: Fix DPRINTF() format strings
In reply to Philippe Mathieu-DaudéMessage-id: <[email protected]>
--- hw/pci-host/bonito.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
hw/pci-host/bonito.c +3 -3
@@ -239,7 +239,7 @@ static void bonito_writel(void *opaque, hwaddr addr, saddr = addr >>2 ; -DPRINTF ("bonito_writel " TARGET_FMT_plx" val %x saddr %x\n" , +DPRINTF ("bonito_writel " TARGET_FMT_plx" val %lx saddr %x\n" , addr, val, saddr);switch (saddr) {case BONITO_BONPONCFG :
@@ -327,7 +327,7 @@ static void bonito_pciconf_writel(void *opaque, hwaddr addr,PCIBonitoState *s = opaque;PCIDevice *d =PCI_DEVICE (s); -DPRINTF ("bonito_pciconf_writel " TARGET_FMT_plx" val %x\n" , addr, val); +DPRINTF ("bonito_pciconf_writel " TARGET_FMT_plx" val %lx\n" , addr, val); d->config_write (d, addr, val,4 ); }
@@ -474,7 +474,7 @@ static void bonito_spciconf_write(void *opaque, hwaddr addr, uint64_t val,uint32_t pciaddr;uint16_t status; -DPRINTF ("bonito_spciconf_write " TARGET_FMT_plx" size %d val %x\n" , +DPRINTF ("bonito_spciconf_write " TARGET_FMT_plx" size %d val %lx\n" , addr, size, val); pciaddr =bonito_sbridge_pciaddr (s, addr);
Signature · 1 line
2.21.3
[PULL 04/14] hw/pci-host/bonito: Map peripheral using physical address
In reply to Philippe Mathieu-DaudéPeripherals are mapped at physical address on busses. Only CPU/IOMMU can use virtual addresses.
Message-id: <[email protected]>
--- hw/pci-host/bonito.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/pci-host/bonito.c +2 -2
@@ -647,12 +647,12 @@ static void bonito_realize(PCIDevice *dev, Error **errp)memory_region_init_io (&s->iomem_ldma,OBJECT (s), &bonito_ldma_ops, s,"ldma" ,0x100 );sysbus_init_mmio (sysbus, &s->iomem_ldma); -sysbus_mmio_map (sysbus,3 ,0xbfe00200 ); +sysbus_mmio_map (sysbus,3 ,0x1fe00200 );memory_region_init_io (&s->iomem_cop,OBJECT (s), &bonito_cop_ops, s,"cop" ,0x100 );sysbus_init_mmio (sysbus, &s->iomem_cop); -sysbus_mmio_map (sysbus,4 ,0xbfe00300 ); +sysbus_mmio_map (sysbus,4 ,0x1fe00300 );/* Map PCI IO Space 0x1fd0 0000 - 0x1fd1 0000 */ memory_region_init_alias(&s->bonito_pciio, OBJECT(s), "isa_mmio",
Signature · 1 line
2.21.3
[PULL 02/14] hw/pci-host: Use CONFIG_PCI_BONITO to select the Bonito North Bridge
In reply to Philippe Mathieu-DaudéFrom: Philippe Mathieu-Daudé <[email protected]>
Ease the kconfig selection by introducing CONFIG_PCI_BONITO to select the Bonito North Bridge.
Message-id: <[email protected]>
--- hw/mips/Kconfig | 1 + hw/pci-host/Kconfig | 4 ++++ hw/pci-host/Makefile.objs | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-)
hw/mips/Kconfig +1 -0
@@ -43,6 +43,7 @@ config JAZZ config FULONG bool + select PCI_BONITO config MIPS_CPS bool
hw/pci-host/Kconfig +4 -0
@@ -55,3 +55,7 @@ config PCI_EXPRESS_DESIGNWARE bool select PCI_EXPRESS select MSI_NONBROKEN + +config PCI_BONITO + select PCI + bool
hw/pci-host/Makefile.objs +1 -1
@@ -12,7 +12,7 @@ common-obj-$(CONFIG_PPCE500_PCI) += ppce500.o common-obj-$(CONFIG_VERSATILE_PCI) += versatile.o common-obj-$(CONFIG_PCI_SABRE) += sabre.o -common-obj-$(CONFIG_FULONG) += bonito.o +common-obj-$(CONFIG_PCI_BONITO) += bonito.o common-obj-$(CONFIG_PCI_I440FX) += i440fx.o common-obj-$(CONFIG_XEN_IGD_PASSTHROUGH) += xen_igd_pt.o common-obj-$(CONFIG_PCI_EXPRESS_Q35) += q35.o
Signature · 1 line
2.21.3
[PULL 05/14] hw/pci-host/bonito: Map all the Bonito64 I/O range
In reply to Philippe Mathieu-DaudéTo ease following guest accesses to the Bonito64 chipset, map its I/O range as UnimplementedDevice.
We can now see the accesses to unimplemented peripheral using the '-d unimp' command line option.
Message-id: <[email protected]>
--- hw/pci-host/bonito.c | 3 +++ hw/pci-host/Kconfig | 1 + 2 files changed, 4 insertions(+)
hw/pci-host/bonito.c +3 -0
@@ -48,6 +48,7 @@#include "sysemu/reset.h" #include "sysemu/runstate.h" #include "exec/address-spaces.h" +#include "hw/misc/unimp.h" /* #define DEBUG_BONITO */
@@ -644,6 +645,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp)sysbus_init_mmio (sysbus, &phb->data_mem);sysbus_mmio_map (sysbus,2 ,BONITO_SPCICONFIG_BASE ); +create_unimplemented_device ("bonito" ,BONITO_REG_BASE ,BONITO_REG_SIZE ); +memory_region_init_io (&s->iomem_ldma,OBJECT (s), &bonito_ldma_ops, s,"ldma" ,0x100 );sysbus_init_mmio (sysbus, &s->iomem_ldma);
hw/pci-host/Kconfig +1 -0
@@ -58,4 +58,5 @@ config PCI_EXPRESS_DESIGNWARE config PCI_BONITO select PCI + select UNIMP bool
Signature · 1 line
2.21.3
[PULL 08/14] hw/pci-host/bonito: Set the Config register reset value with FIELD_DP32
In reply to Philippe Mathieu-DaudéDescribe some bits of the Config registers fields with the registerfields API. Use the FIELD_DP32() macro to set the BONGENCFG register bits at reset.
Message-id: <[email protected]>
--- hw/pci-host/bonito.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
hw/pci-host/bonito.c +20 -1
@@ -50,6 +50,7 @@#include "sysemu/runstate.h" #include "exec/address-spaces.h" #include "hw/misc/unimp.h" +#include "hw/registerfields.h" /* #define DEBUG_BONITO */
@@ -112,8 +113,19 @@/* Power on register */ #define BONITO_BONPONCFG (0x00 >> 2)/* 0x100 */ + +/* PCI configuration register */ #define BONITO_BONGENCFG_OFFSET 0x4#define BONITO_BONGENCFG (BONITO_BONGENCFG_OFFSET >> 2)/*0x104 */ +REG32(BONGENCFG, 0x104) +FIELD(BONGENCFG, DEBUGMODE, 0, 1) +FIELD(BONGENCFG, SNOOP, 1, 1) +FIELD(BONGENCFG, CPUSELFRESET, 2, 1) +FIELD(BONGENCFG, BYTESWAP, 6, 1) +FIELD(BONGENCFG, UNCACHED, 7, 1) +FIELD(BONGENCFG, PREFETCH, 8, 1) +FIELD(BONGENCFG, WRITEBEHIND, 9, 1) +FIELD (BONGENCFG ,PCIQUEUE ,12 ,1 ) /* 2. IO & IDE configuration */#define BONITO_IODEVCFG (0x08 >> 2)/* 0x108 */
@@ -577,11 +589,18 @@ static int pci_bonito_map_irq(PCIDevice *pci_dev, int irq_num)static void bonito_reset (void *opaque) {PCIBonitoState *s = opaque; +uint32_t val =0 ;/* set the default value of north bridge registers */ s->regs[BONITO_BONPONCFG ] =0xc40 ; - s->regs[BONITO_BONGENCFG ] =0x1384 ; + val =FIELD_DP32 (val,BONGENCFG ,PCIQUEUE ,1 ); + val =FIELD_DP32 (val,BONGENCFG ,WRITEBEHIND ,1 ); + val =FIELD_DP32 (val,BONGENCFG ,PREFETCH ,1 ); + val =FIELD_DP32 (val,BONGENCFG ,UNCACHED ,1 ); + val =FIELD_DP32 (val,BONGENCFG ,CPUSELFRESET ,1 ); + s->regs[BONITO_BONGENCFG ] = val; + s->regs[BONITO_IODEVCFG ] =0x2bff8010 ; s->regs[BONITO_SDCFG ] =0x255e0091 ;
Signature · 1 line
2.21.3
[PULL 14/14] MAINTAINERS: Change Aleksandar Rikalo's email address
In reply to Philippe Mathieu-DaudéFrom: Aleksandar Markovic <[email protected]>
Aleksandar Rikalo wants to use a different email address from now on.
Message-id: <[email protected]>
--- .mailmap | 3 ++- MAINTAINERS | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-)
.mailmap +2 -1
@@ -42,7 +42,8 @@ Justin Terry (VM) <[email protected]> Justin Terry (VM) via Qemu-devel <qemu Aleksandar Markovic <[email protected]> <[email protected]> Aleksandar Markovic <[email protected]> <[email protected]> Aleksandar Markovic <[email protected]> <[email protected]> -Aleksandar Rikalo <[email protected]> <[email protected]> +Aleksandar Rikalo <[email protected]> <[email protected]> +Aleksandar Rikalo <[email protected]> <[email protected]> Anthony Liguori <[email protected]> Anthony Liguori <[email protected]> James Hogan <[email protected]> <[email protected]> Leif Lindholm <[email protected]> <[email protected]>
MAINTAINERS +6 -6
@@ -213,7 +213,7 @@ F: disas/microblaze.c MIPS TCG CPUs M: Aleksandar Markovic <[email protected]> R: Aurelien Jarno <[email protected]> -R: Aleksandar Rikalo <[email protected]> +R: Aleksandar Rikalo <[email protected]> S: Maintained F: target/mips/ F: default-configs/*mips*
@@ -1048,7 +1048,7 @@ MIPS Machines ------------- Jazz M: Hervé Poussineau <[email protected]> -R: Aleksandar Rikalo <[email protected]> +R: Aleksandar Rikalo <[email protected]> S: Maintained F: hw/mips/jazz.c F: hw/display/jazz_led.c
@@ -1069,7 +1069,7 @@ F: tests/acceptance/machine_mips_malta.py Mipssim M: Aleksandar Markovic <[email protected]> -R: Aleksandar Rikalo <[email protected]> +R: Aleksandar Rikalo <[email protected]> S: Odd Fixes F: hw/mips/mipssim.c F: hw/net/mipsnet.c
@@ -1077,7 +1077,7 @@ F: hw/net/mipsnet.c R4000 M: Aleksandar Markovic <[email protected]> R: Aurelien Jarno <[email protected]> -R: Aleksandar Rikalo <[email protected]> +R: Aleksandar Rikalo <[email protected]> S: Obsolete F: hw/mips/r4k.c
@@ -1094,7 +1094,7 @@ F: include/hw/isa/vt82c686.h Boston M: Paul Burton <[email protected]> -R: Aleksandar Rikalo <[email protected]> +R: Aleksandar Rikalo <[email protected]> S: Maintained F: hw/core/loader-fit.c F: hw/mips/boston.c
@@ -2608,7 +2608,7 @@ F: disas/i386.c MIPS TCG target M: Aleksandar Markovic <[email protected]> R: Aurelien Jarno <[email protected]> -R: Aleksandar Rikalo <[email protected]> +R: Aleksandar Rikalo <[email protected]> S: Maintained F: tcg/mips/
Signature · 1 line
2.21.3
[PULL 06/14] hw/pci-host/bonito: Map the different PCI ranges more detailed
In reply to Philippe Mathieu-DaudéBetter describe the Bonito64 MEM HI/LO and I/O PCI ranges, add more PCI regions as unimplemented.
Message-id: <[email protected]>
--- hw/pci-host/bonito.c | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-)
hw/pci-host/bonito.c +28 -4
@@ -39,6 +39,7 @@*/ #include "qemu/osdep.h" +#include "qemu/units.h" #include "qemu/error-report.h" #include "hw/pci/pci.h" #include "hw/irq.h"
@@ -82,7 +83,7 @@#define BONITO_PCILO1_BASE 0x14000000#define BONITO_PCILO2_BASE 0x18000000#define BONITO_PCIHI_BASE 0x20000000 -#define BONITO_PCIHI_SIZE 0x20000000 +#define BONITO_PCIHI_SIZE 0x60000000#define BONITO_PCIHI_TOP (BONITO_PCIHI_BASE + BONITO_PCIHI_SIZE - 1)#define BONITO_PCIIO_BASE 0x1fd00000#define BONITO_PCIIO_BASE_VA 0xbfd00000
@@ -605,14 +606,26 @@ static void bonito_pcihost_realize(DeviceState *dev, Error **errp) {PCIHostState *phb =PCI_HOST_BRIDGE (dev);BonitoState *bs =BONITO_PCI_HOST_BRIDGE (dev); +MemoryRegion *pcimem_lo_alias =g_new (MemoryRegion,3 ); -memory_region_init (&bs->pci_mem,OBJECT (dev),"pci.mem" ,BONITO_PCILO_SIZE ); +memory_region_init (&bs->pci_mem,OBJECT (dev),"pci.mem" ,BONITO_PCIHI_SIZE ); phb->bus =pci_register_root_bus (dev,"pci" , pci_bonito_set_irq, pci_bonito_map_irq, dev, &bs->pci_mem,get_system_io (),0x28 ,32 ,TYPE_PCI_BUS ); -memory_region_add_subregion (get_system_memory (),BONITO_PCILO_BASE , - &bs->pci_mem); + +for (size_t i =0 ; i <3 ; i++) { +char *name =g_strdup_printf ("pci.lomem%zu" , i); + +memory_region_init_alias (&pcimem_lo_alias[i],NULL , name, + &bs->pci_mem, i *64 * MiB,64 * MiB); +memory_region_add_subregion (get_system_memory (), +BONITO_PCILO_BASE + i *64 * MiB, + &pcimem_lo_alias[i]); +g_free (name); + } + +create_unimplemented_device ("pci.io" ,BONITO_PCIIO_BASE ,1 * MiB); }static void bonito_realize (PCIDevice *dev,Error **errp)
@@ -620,6 +633,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp)PCIBonitoState *s =PCI_BONITO (dev);SysBusDevice *sysbus =SYS_BUS_DEVICE (s->pcihost);PCIHostState *phb =PCI_HOST_BRIDGE (s->pcihost); +BonitoState *bs =BONITO_PCI_HOST_BRIDGE (s->pcihost); +MemoryRegion *pcimem_alias =g_new (MemoryRegion,1 );/* * Bonito North Bridge, built on FPGA,
@@ -652,6 +667,7 @@ static void bonito_realize(PCIDevice *dev, Error **errp)sysbus_init_mmio (sysbus, &s->iomem_ldma);sysbus_mmio_map (sysbus,3 ,0x1fe00200 ); +/* PCI copier */ memory_region_init_io (&s->iomem_cop,OBJECT (s), &bonito_cop_ops, s,"cop" ,0x100 );sysbus_init_mmio (sysbus, &s->iomem_cop);
@@ -669,6 +685,14 @@ static void bonito_realize(PCIDevice *dev, Error **errp)sysbus_init_mmio (sysbus, &s->bonito_localio);sysbus_mmio_map (sysbus,6 ,BONITO_DEV_BASE ); +memory_region_init_alias (pcimem_alias,NULL ,"pci.mem.alias" , + &bs->pci_mem,0 ,BONITO_PCIHI_SIZE ); +memory_region_add_subregion (get_system_memory (), +BONITO_PCIHI_BASE , pcimem_alias); +create_unimplemented_device ("PCI_2" , + (hwaddr )BONITO_PCIHI_BASE +BONITO_PCIHI_SIZE , +2 * GiB); +/* set the default value of north bridge pci config */ pci_set_word (dev->config +PCI_COMMAND ,0x0000 );pci_set_word (dev->config +PCI_STATUS ,0x0000 );
Signature · 1 line
2.21.3
[PULL 07/14] hw/pci-host/bonito: Better describe the I/O CS regions
In reply to Philippe Mathieu-DaudéBetter describe the I/O CS regions, add the ROMCS region.
Message-id: <[email protected]>
--- hw/pci-host/bonito.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
hw/pci-host/bonito.c +11 -2
@@ -673,6 +673,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp)sysbus_init_mmio (sysbus, &s->iomem_cop);sysbus_mmio_map (sysbus,4 ,0x1fe00300 ); +create_unimplemented_device ("ROMCS" ,BONITO_FLASH_BASE ,60 * MiB); +/* Map PCI IO Space 0x1fd0 0000 - 0x1fd1 0000 */ memory_region_init_alias (&s->bonito_pciio,OBJECT (s),"isa_mmio" ,get_system_io (),0 ,BONITO_PCIIO_SIZE );
@@ -680,10 +682,17 @@ static void bonito_realize(PCIDevice *dev, Error **errp)sysbus_mmio_map (sysbus,5 ,BONITO_PCIIO_BASE );/* add pci local io mapping */ -memory_region_init_alias (&s->bonito_localio,OBJECT (s),"isa_mmio" , -get_system_io (),0 ,BONITO_DEV_SIZE ); + +memory_region_init_alias (&s->bonito_localio,OBJECT (s),"IOCS[0]" , +get_system_io (),0 ,256 * KiB);sysbus_init_mmio (sysbus, &s->bonito_localio);sysbus_mmio_map (sysbus,6 ,BONITO_DEV_BASE ); +create_unimplemented_device ("IOCS[1]" ,BONITO_DEV_BASE +1 *256 * KiB, +256 * KiB); +create_unimplemented_device ("IOCS[2]" ,BONITO_DEV_BASE +2 *256 * KiB, +256 * KiB); +create_unimplemented_device ("IOCS[3]" ,BONITO_DEV_BASE +3 *256 * KiB, +256 * KiB);memory_region_init_alias (pcimem_alias,NULL ,"pci.mem.alias" , &bs->pci_mem,0 ,BONITO_PCIHI_SIZE );
Signature · 1 line
2.21.3
[PULL 09/14] hw/mips/fuloong2e: Move code and update a comment
In reply to Philippe Mathieu-DaudéMove the RAM-related call closer to the RAM creation block, rename the ROM comment.
Message-id: <[email protected]>
--- hw/mips/mips_fulong2e.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
hw/mips/mips_fulong2e.c +2 -3
@@ -315,12 +315,11 @@ static void mips_fulong2e_init(MachineState *machine)error_report ("Invalid RAM size, should be 256MB" );exit (EXIT_FAILURE ); } +memory_region_add_subregion (address_space_mem,0 , machine->ram); -/* allocate RAM */ +/* Boot ROM */ memory_region_init_rom (bios,NULL ,"fulong2e.bios" ,BIOS_SIZE , &error_fatal); - -memory_region_add_subregion (address_space_mem,0 , machine->ram);memory_region_add_subregion (address_space_mem,0x1fc00000LL , bios);/*
Signature · 1 line
2.21.3
[PULL 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name
In reply to Philippe Mathieu-DaudéWe always miswrote the Fuloong machine... Fix its name. Add an machine alias to the previous name for backward compatibility.
Message-id: <[email protected]>
---
docs/system/deprecated.rst | 5 +++
docs/system/target-mips.rst | 2 +-
default-configs/mips64el-softmmu.mak | 2 +-
hw/isa/vt82c686.c | 2 +-
hw/mips/{mips_fulong2e.c => fuloong2e.c} | 41 ++++++++++++------------
hw/pci-host/bonito.c | 8 ++---
tests/qtest/endianness-test.c | 2 +-
MAINTAINERS | 4 +--
hw/mips/Kconfig | 2 +-
hw/mips/Makefile.objs | 2 +-
10 files changed, 38 insertions(+), 32 deletions(-)
rename hw/mips/{mips_fulong2e.c => fuloong2e.c} (91%)docs/system/deprecated.rst +5 -0
@@ -368,6 +368,11 @@ mips ``r4k`` platform (since 5.0) This machine type is very old and unmaintained. Users should use the ``malta`` machine type instead. +mips ``fulong2e`` machine (since 5.1) +''''''''''''''''''''''''''''''''''''' + +This machine has been renamed ``fuloong2e``. + ``pc-1.0``, ``pc-1.1``, ``pc-1.2`` and ``pc-1.3`` (since 5.0) '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
docs/system/target-mips.rst +1 -1
@@ -74,7 +74,7 @@ The MIPS Magnum R4000 emulation supports: - G364 framebuffer -The Fulong 2E emulation supports: +The Fuloong 2E emulation supports: - Loongson 2E CPU
default-configs/mips64el-softmmu.mak +1 -1
@@ -2,7 +2,7 @@ include mips-softmmu-common.mak CONFIG_IDE_VIA=y -CONFIG_FULONG=y +CONFIG_FULOONG=y CONFIG_ATI_VGA=y CONFIG_RTL8139_PCI=y CONFIG_JAZZ=y
hw/isa/vt82c686.c +1 -1
@@ -503,7 +503,7 @@ static void via_class_init(ObjectClass *klass, void *data) dc->vmsd = &vmstate_via;/* * Reason: part of VIA VT82C686 southbridge, needs to be wired up, -* e.g. by mips_fulong2e_init() +* e.g. by mips_fuloong2e_init() */ dc->user_creatable = false; }
hw/mips/fuloong2e.c renamed from hw/mips/mips_fulong2e.c +21 -20
108 lines not on this page · raw message
hw/pci-host/bonito.c +4 -4
@@ -11,7 +11,7 @@*/ /* -* fulong 2e mini pc has a bonito north bridge. +* fuloong 2e mini pc has a bonito north bridge. */ /*
@@ -573,11 +573,11 @@ static int pci_bonito_map_irq(PCIDevice *pci_dev, int irq_num) slot = (pci_dev->devfn >>3 );switch (slot) { -case 5 :/* FULONG2E_VIA_SLOT, SouthBridge, IDE, USB, ACPI, AC97, MC97 */ +case 5 :/* FULOONG2E_VIA_SLOT, SouthBridge, IDE, USB, ACPI, AC97, MC97 */ return irq_num %4 +BONITO_IRQ_BASE ; -case 6 :/* FULONG2E_ATI_SLOT, VGA */ +case 6 :/* FULOONG2E_ATI_SLOT, VGA */ return 4 +BONITO_IRQ_BASE ; -case 7 :/* FULONG2E_RTL_SLOT, RTL8139 */ +case 7 :/* FULOONG2E_RTL_SLOT, RTL8139 */ return 5 +BONITO_IRQ_BASE ; case 8 ... 12: /* PCI slot 1 to 4 */return (slot -8 + irq_num) +6 +BONITO_IRQ_BASE ;
tests/qtest/endianness-test.c +1 -1
@@ -33,7 +33,7 @@ static const TestCase test_cases[] = { { "mips64", "pica61", 0x90000000, .bswap = true }, { "mips64", "mips", 0x14000000, .bswap = true }, { "mips64", "malta", 0x10000000, .bswap = true }, - { "mips64el", "fulong2e", 0x1fd00000 }, + { "mips64el", "fuloong2e", 0x1fd00000 }, { "ppc", "g3beige", 0xfe000000, .bswap = true, .superio = "i82378" }, { "ppc", "40p", 0x80000000, .bswap = true }, { "ppc", "bamboo", 0xe8000000, .bswap = true, .superio = "i82378" },
MAINTAINERS +2 -2
@@ -1081,13 +1081,13 @@ R: Aleksandar Rikalo <[email protected]> S: Obsolete F: hw/mips/mips_r4k.c -Fulong 2E +Fuloong 2E M: Huacai Chen <[email protected]> M: Philippe Mathieu-Daudé <[email protected]> M: Aleksandar Markovic <[email protected]> R: Jiaxun Yang <[email protected]> S: Odd Fixes -F: hw/mips/mips_fulong2e.c +F: hw/mips/fuloong2e.c F: hw/isa/vt82c686.c F: hw/pci-host/bonito.c F: include/hw/isa/vt82c686.h
hw/mips/Kconfig +1 -1
@@ -41,7 +41,7 @@ config JAZZ select DS1225Y select JAZZ_LED -config FULONG +config FULOONG bool select PCI_BONITO
hw/mips/Makefile.objs +1 -1
@@ -3,6 +3,6 @@ obj-$(CONFIG_R4K) += mips_r4k.o obj-$(CONFIG_MALTA) += gt64xxx_pci.o mips_malta.o obj-$(CONFIG_MIPSSIM) += mips_mipssim.o obj-$(CONFIG_JAZZ) += mips_jazz.o -obj-$(CONFIG_FULONG) += mips_fulong2e.o +obj-$(CONFIG_FULOONG) += fuloong2e.o obj-$(CONFIG_MIPS_CPS) += cps.o obj-$(CONFIG_MIPS_BOSTON) += boston.o
Signature · 1 line
2.21.3
[PULL 11/14] hw/mips: Rename malta/mipssim/r4k/jazz files
In reply to Philippe Mathieu-DaudéFrom: Aleksandar Markovic <[email protected]>
Machine file names should not have prefix "mips_".
Message-id: <[email protected]>
---
hw/mips/{mips_jazz.c => jazz.c} | 0
hw/mips/{mips_malta.c => malta.c} | 0
hw/mips/{mips_mipssim.c => mipssim.c} | 0
hw/mips/{mips_r4k.c => r4k.c} | 0
MAINTAINERS | 8 ++++----
hw/mips/Makefile.objs | 8 ++++----
6 files changed, 8 insertions(+), 8 deletions(-)
rename hw/mips/{mips_jazz.c => jazz.c} (100%)
rename hw/mips/{mips_malta.c => malta.c} (100%)
rename hw/mips/{mips_mipssim.c => mipssim.c} (100%)
rename hw/mips/{mips_r4k.c => r4k.c} (100%)hw/mips/jazz.c renamed from hw/mips/mips_jazz.c +0 -0
hw/mips/malta.c renamed from hw/mips/mips_malta.c +0 -0
hw/mips/mipssim.c renamed from hw/mips/mips_mipssim.c +0 -0
hw/mips/r4k.c renamed from hw/mips/mips_r4k.c +0 -0
MAINTAINERS +4 -4
@@ -1050,7 +1050,7 @@ Jazz M: Hervé Poussineau <[email protected]> R: Aleksandar Rikalo <[email protected]> S: Maintained -F: hw/mips/mips_jazz.c +F: hw/mips/jazz.c F: hw/display/jazz_led.c F: hw/dma/rc4030.c
@@ -1061,7 +1061,7 @@ R: Aurelien Jarno <[email protected]> S: Maintained F: hw/isa/piix4.c F: hw/acpi/piix4.c -F: hw/mips/mips_malta.c +F: hw/mips/malta.c F: hw/mips/gt64xxx_pci.c F: include/hw/southbridge/piix.h F: tests/acceptance/linux_ssh_mips_malta.py
@@ -1071,7 +1071,7 @@ Mipssim M: Aleksandar Markovic <[email protected]> R: Aleksandar Rikalo <[email protected]> S: Odd Fixes -F: hw/mips/mips_mipssim.c +F: hw/mips/mipssim.c F: hw/net/mipsnet.c R4000
@@ -1079,7 +1079,7 @@ M: Aleksandar Markovic <[email protected]> R: Aurelien Jarno <[email protected]> R: Aleksandar Rikalo <[email protected]> S: Obsolete -F: hw/mips/mips_r4k.c +F: hw/mips/r4k.c Fuloong 2E M: Huacai Chen <[email protected]>
hw/mips/Makefile.objs +4 -4
@@ -1,8 +1,8 @@ obj-y += addr.o mips_int.o -obj-$(CONFIG_R4K) += mips_r4k.o -obj-$(CONFIG_MALTA) += gt64xxx_pci.o mips_malta.o -obj-$(CONFIG_MIPSSIM) += mips_mipssim.o -obj-$(CONFIG_JAZZ) += mips_jazz.o +obj-$(CONFIG_R4K) += r4k.o +obj-$(CONFIG_MALTA) += gt64xxx_pci.o malta.o +obj-$(CONFIG_MIPSSIM) += mipssim.o +obj-$(CONFIG_JAZZ) += jazz.o obj-$(CONFIG_FULOONG) += fuloong2e.o obj-$(CONFIG_MIPS_CPS) += cps.o obj-$(CONFIG_MIPS_BOSTON) += boston.o
Signature · 1 line
2.21.3
[PULL 12/14] hw/mips/malta: Add some logging for bad register offset cases
In reply to Philippe Mathieu-DaudéFrom: Aleksandar Markovic <[email protected]>
Log the cases where a guest attempts read or write using bad register offset.
Message-id: <[email protected]>
--- hw/mips/malta.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
hw/mips/malta.c +6 -8
@@ -427,10 +427,9 @@ static uint64_t malta_fpga_read(void *opaque, hwaddr addr,break ;default : -#if 0 -printf ("malta_fpga_read: Bad register offset 0x" TARGET_FMT_lx"\n" , - addr); -#endif +qemu_log_mask (LOG_GUEST_ERROR , +"malta_fpga_read: Bad register addr 0x%" HWADDR_PRIX "\n" , + addr);break ; }return val;
@@ -515,10 +514,9 @@ static void malta_fpga_write(void *opaque, hwaddr addr,break ;default : -#if 0 -printf ("malta_fpga_write: Bad register offset 0x" TARGET_FMT_lx"\n" , - addr); -#endif +qemu_log_mask (LOG_GUEST_ERROR , +"malta_fpga_write: Bad register addr 0x%" HWADDR_PRIX "\n" , + addr);break ; } }
Signature · 1 line
2.21.3
[PULL 13/14] hw/mips/mips_int: De-duplicate KVM interrupt delivery
In reply to Philippe Mathieu-DaudéRefactor duplicated code in a single place.
Message-Id: <[email protected]>
--- hw/mips/mips_int.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
hw/mips/mips_int.c +3 -8
@@ -47,17 +47,12 @@ static void cpu_mips_irq_request(void *opaque, int irq, int level)if (level) { env->CP0_Cause |=1 << (irq + CP0Ca_IP); - -if (kvm_enabled () && irq ==2 ) { -kvm_mips_set_interrupt (cpu, irq, level); - } - }else { env->CP0_Cause &= ~(1 << (irq + CP0Ca_IP)); + } -if (kvm_enabled () && irq ==2 ) { -kvm_mips_set_interrupt (cpu, irq, level); - } +if (kvm_enabled () && irq ==2 ) { +kvm_mips_set_interrupt (cpu, irq, level); }if (env->CP0_Cause & CP0Ca_IP_mask) {
Signature · 1 line
2.21.3
Peter Maydell
AppliedQuoted 18 lines · Philippe Mathieu-Daudé
The following changes since commit
8f72c75cfc9b3c84a9b5e7a58ee5e471cb2f19c8:Merge remote-tracking branch 'remotes/kraxel/tags/audio-20200526-pull-reque=
st' into staging (2020-05-26 10:59:01 +0100)are available in the Git repository at:
https://gitlab.com/philmd/qemu.git tags/mips-hw-next-20200526
for you to fetch changes up to
97d8974620053db5754af808583de70380f73a10:
MAINTAINERS: Change Aleksandar Rikalo's email address (2020-05-26 13:21:12 =
+0200)----------------------------------------------------------------
MIPS hardware updates
Quoted 8 lines
-
MAINTAINERSupdated to welcome Huacai Chen and Jiaxun Yang, and update Aleksandar Rikalo's email address,
- Trivial improvements in the Bonito64 North Bridge and the Fuloong 2e machine,
- MIPS Machines names unified without 'mips_' prefix.CI: https://travis-ci.org/github/philmd/qemu/builds/691247975
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.
-- PMM