Skip to content

Commit eb6490f

Browse files
committed
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200703' into staging
target-arm queue: * i.MX6UL EVK board: put PHYs in the correct places * hw/arm/virt: Let the virtio-iommu bypass MSIs * target/arm: kvm: Handle DABT with no valid ISS * hw/arm/virt-acpi-build: Only expose flash on older machine types * target/arm: Fix temp double-free in sve ldr/str * hw/display/bcm2835_fb.c: Initialize all fields of struct * hw/arm/spitz: Code cleanup to fix Coverity-detected memory leak * Deprecate TileGX port # gpg: Signature made Fri 03 Jul 2020 17:53:05 BST # gpg: using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE # gpg: issuer "[email protected]" # gpg: Good signature from "Peter Maydell <[email protected]>" [ultimate] # gpg: aka "Peter Maydell <[email protected]>" [ultimate] # gpg: aka "Peter Maydell <[email protected]>" [ultimate] # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83 15CF 3C25 25ED 1436 0CDE * remotes/pmaydell/tags/pull-target-arm-20200703: (34 commits) Deprecate TileGX port Replace uses of FROM_SSI_SLAVE() macro with QOM casts hw/arm/spitz: Provide usual QOM macros for corgi-ssp and spitz-lcdtg hw/arm/pxa2xx_pic: Use LOG_GUEST_ERROR for bad guest register accesses hw/arm/spitz: Use LOG_GUEST_ERROR for bad guest register accesses hw/gpio/zaurus.c: Use LOG_GUEST_ERROR for bad guest register accesses hw/arm/spitz: Encapsulate misc GPIO handling in a device hw/misc/max111x: Create header file for documentation, TYPE_ macros hw/misc/max111x: Use GPIO lines rather than max111x_set_input() hw/arm/spitz: Use max111x properties to set initial values ssi: Add ssi_realize_and_unref() hw/misc/max111x: Don't use vmstate_register() hw/misc/max111x: provide QOM properties for setting initial values hw/arm/spitz: Implement inbound GPIO lines for bit5 and power signals hw/arm/spitz: Keep pointers to scp0, scp1 in SpitzMachineState hw/arm/spitz: Keep pointers to MPU and SSI devices in SpitzMachineState hw/arm/spitz: Create SpitzMachineClass abstract base class hw/arm/spitz: Detabify hw/display/bcm2835_fb.c: Initialize all fields of struct target/arm: Fix temp double-free in sve ldr/str ... Signed-off-by: Peter Maydell <[email protected]>
2 parents 0b100c8 + 0f10bf8 commit eb6490f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+973
-311
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ F: hw/gpio/max7310.c
787787
F: hw/gpio/zaurus.c
788788
F: hw/misc/mst_fpga.c
789789
F: hw/misc/max111x.c
790+
F: include/hw/misc/max111x.h
790791
F: include/hw/arm/pxa.h
791792
F: include/hw/arm/sharpsl.h
792793
F: include/hw/display/tc6393xb.h

docs/system/deprecated.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,17 @@ The above, converted to the current supported format::
404404

405405
json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"}
406406

407+
linux-user mode CPUs
408+
--------------------
409+
410+
``tilegx`` CPUs (since 5.1.0)
411+
'''''''''''''''''''''''''''''
412+
413+
The ``tilegx`` guest CPU support (which was only implemented in
414+
linux-user mode) is deprecated and will be removed in a future version
415+
of QEMU. Support for this CPU was removed from the upstream Linux
416+
kernel in 2018, and has also been dropped from glibc.
417+
407418
Related binaries
408419
----------------
409420

hw/arm/fsl-imx6ul.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)
427427
FSL_IMX6UL_ENET2_TIMER_IRQ,
428428
};
429429

430+
object_property_set_uint(OBJECT(&s->eth[i]),
431+
s->phy_num[i],
432+
"phy-num", &error_abort);
430433
object_property_set_uint(OBJECT(&s->eth[i]),
431434
FSL_IMX6UL_ETH_NUM_TX_RINGS,
432435
"tx-ring-num", &error_abort);
@@ -607,10 +610,17 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)
607610
FSL_IMX6UL_OCRAM_ALIAS_ADDR, &s->ocram_alias);
608611
}
609612

613+
static Property fsl_imx6ul_properties[] = {
614+
DEFINE_PROP_UINT32("fec1-phy-num", FslIMX6ULState, phy_num[0], 0),
615+
DEFINE_PROP_UINT32("fec2-phy-num", FslIMX6ULState, phy_num[1], 1),
616+
DEFINE_PROP_END_OF_LIST(),
617+
};
618+
610619
static void fsl_imx6ul_class_init(ObjectClass *oc, void *data)
611620
{
612621
DeviceClass *dc = DEVICE_CLASS(oc);
613622

623+
device_class_set_props(dc, fsl_imx6ul_properties);
614624
dc->realize = fsl_imx6ul_realize;
615625
dc->desc = "i.MX6UL SOC";
616626
/* Reason: Uses serial_hds and nd_table in realize() directly */

hw/arm/mcimx6ul-evk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ static void mcimx6ul_evk_init(MachineState *machine)
4040

4141
s = FSL_IMX6UL(object_new(TYPE_FSL_IMX6UL));
4242
object_property_add_child(OBJECT(machine), "soc", OBJECT(s));
43+
object_property_set_uint(OBJECT(s), 2, "fec1-phy-num", &error_fatal);
44+
object_property_set_uint(OBJECT(s), 1, "fec2-phy-num", &error_fatal);
4345
qdev_realize(DEVICE(s), NULL, &error_fatal);
4446

4547
memory_region_add_subregion(get_system_memory(), FSL_IMX6UL_MMDC_ADDR,

hw/arm/pxa2xx_pic.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "qemu/osdep.h"
1212
#include "qapi/error.h"
1313
#include "qemu/module.h"
14+
#include "qemu/log.h"
1415
#include "cpu.h"
1516
#include "hw/arm/pxa.h"
1617
#include "hw/sysbus.h"
@@ -166,7 +167,9 @@ static uint64_t pxa2xx_pic_mem_read(void *opaque, hwaddr offset,
166167
case ICHP: /* Highest Priority register */
167168
return pxa2xx_pic_highest(s);
168169
default:
169-
printf("%s: Bad register offset " REG_FMT "\n", __func__, offset);
170+
qemu_log_mask(LOG_GUEST_ERROR,
171+
"pxa2xx_pic_mem_read: bad register offset 0x%" HWADDR_PRIx
172+
"\n", offset);
170173
return 0;
171174
}
172175
}
@@ -199,7 +202,9 @@ static void pxa2xx_pic_mem_write(void *opaque, hwaddr offset,
199202
s->priority[32 + ((offset - IPR32) >> 2)] = value & 0x8000003f;
200203
break;
201204
default:
202-
printf("%s: Bad register offset " REG_FMT "\n", __func__, offset);
205+
qemu_log_mask(LOG_GUEST_ERROR,
206+
"pxa2xx_pic_mem_write: bad register offset 0x%"
207+
HWADDR_PRIx "\n", offset);
203208
return;
204209
}
205210
pxa2xx_pic_update(opaque);

0 commit comments

Comments
 (0)