mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07:00
target-arm queue:
* target/arm: Cleanup and refactoring preparatory to SVE2
* armsse: Define ARMSSEClass correctly
* hw/misc/unimp: Improve information provided in log messages
* hw/qdev-clock: Avoid calling qdev_connect_clock_in after DeviceRealize
* hw/arm/xilinx_zynq: Call qdev_connect_clock_in() before DeviceRealize
* hw/net/allwinner-sun8i-emac: Use AddressSpace for DMA transfers
* hw/sd/allwinner-sdhost: Use AddressSpace for DMA transfers
* target/arm: Fill in the WnR syndrome bit in mte_check_fail
* target/arm: Clarify HCR_EL2 ARMCPRegInfo type
* hw/arm/musicpal: Use AddressSpace for DMA transfers
* hw/clock: Minor cleanups
* hw/arm/sbsa-ref: fix typo breaking PCIe IRQs
-----BEGIN PGP SIGNATURE-----
iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAl9IzPYZHHBldGVyLm1h
eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3u0ND/9BvrjVquzqD83keJkZe8e1
txQK2bdHHili/kGoJRXeWdca5wtmlKMcHUw5dUHfgUrQo3p3hDw2P0jWB39Pqbz4
Uoc1M1fMMckV/wygpRIXzB6Y6+kTOc3E+xY+6xreXQHNl/Fv+nkATVwbHX1rKxcg
SGIyjHRB8DiiQ8s1Szhyr6+jr/FVN5xHHHt+DSArYoM0UoXNyzzdrUzcTA1c5AfS
lBH5Slz+rLLHoN1rmycb//X1CZ+hAv0jZl9O8+70S1aOLIuin3YewEBDfV+sEo88
P9qfhdRer1j/HwRa00R30g86z2FgoSFqyewX96SetuhoUz4EH8TZb5NIpKWONbai
PhWl4Bul6xXS051AARoewbNcXZ9scFXNc4BYQEW4EkTgX3J2AekN3m8HncuoNWAm
w8MEFgGKDqD/CoAKTNHtZKnP8Iwz/8widGjFe86bzzBsM2OWi7VT+ApdSxtom95z
5CNFpQDPGc7p4hDgGPXR3pvuRSbOT04E/rs4JF7R9TQAFWDESPWSyi3HvULFTC+Y
7W4iwSl0WNXLUGoZTIZ4EIf6MaGVRcjJNWWb4dXpZzN9c13o70uknRGu+kma08Ic
kZO3jF/W1tFEsAeI+hJeTQk7oEFn7YL8S7D6X+77sdy9JI8Csr6rqHUBJmcMIaJJ
78vsbH079zJbuVIV2f3p6g==
=YCxD
-----END PGP SIGNATURE-----
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200828' into staging
target-arm queue:
* target/arm: Cleanup and refactoring preparatory to SVE2
* armsse: Define ARMSSEClass correctly
* hw/misc/unimp: Improve information provided in log messages
* hw/qdev-clock: Avoid calling qdev_connect_clock_in after DeviceRealize
* hw/arm/xilinx_zynq: Call qdev_connect_clock_in() before DeviceRealize
* hw/net/allwinner-sun8i-emac: Use AddressSpace for DMA transfers
* hw/sd/allwinner-sdhost: Use AddressSpace for DMA transfers
* target/arm: Fill in the WnR syndrome bit in mte_check_fail
* target/arm: Clarify HCR_EL2 ARMCPRegInfo type
* hw/arm/musicpal: Use AddressSpace for DMA transfers
* hw/clock: Minor cleanups
* hw/arm/sbsa-ref: fix typo breaking PCIe IRQs
# gpg: Signature made Fri 28 Aug 2020 10:23:02 BST
# gpg: using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
# gpg: issuer "peter.maydell@linaro.org"
# gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [ultimate]
# gpg: aka "Peter Maydell <pmaydell@gmail.com>" [ultimate]
# gpg: aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [ultimate]
# Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83 15CF 3C25 25ED 1436 0CDE
* remotes/pmaydell/tags/pull-target-arm-20200828: (35 commits)
target/arm: Convert sq{, r}dmulh to gvec for aa64 advsimd
target/arm: Convert integer multiply-add (indexed) to gvec for aa64 advsimd
target/arm: Convert integer multiply (indexed) to gvec for aa64 advsimd
target/arm: Generalize inl_qrdmlah_* helper functions
target/arm: Tidy SVE tszimm shift formats
target/arm: Split out gen_gvec_ool_zz
target/arm: Split out gen_gvec_ool_zzz
target/arm: Split out gen_gvec_ool_zzp
target/arm: Merge helper_sve_clr_* and helper_sve_movz_*
target/arm: Split out gen_gvec_ool_zzzp
target/arm: Use tcg_gen_gvec_bitsel for trans_SEL_pppp
target/arm: Clean up 4-operand predicate expansion
target/arm: Merge do_vector2_p into do_mov_p
target/arm: Rearrange {sve,fp}_check_access assert
target/arm: Split out gen_gvec_fn_zzz, do_zzz_fn
target/arm: Split out gen_gvec_fn_zz
qemu/int128: Add int128_lshift
armsse: Define ARMSSEClass correctly
hw/misc/unimp: Display the offset with width of the region size
hw/misc/unimp: Display the value with width of the access size
...
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
ea1bb830cb
29 changed files with 629 additions and 495 deletions
|
|
@ -220,7 +220,7 @@ typedef struct ARMSSE {
|
|||
typedef struct ARMSSEInfo ARMSSEInfo;
|
||||
|
||||
typedef struct ARMSSEClass {
|
||||
DeviceClass parent_class;
|
||||
SysBusDeviceClass parent_class;
|
||||
const ARMSSEInfo *info;
|
||||
} ARMSSEClass;
|
||||
|
||||
|
|
|
|||
|
|
@ -53,21 +53,4 @@ typedef struct {
|
|||
Clock *refclk;
|
||||
} CadenceUARTState;
|
||||
|
||||
static inline DeviceState *cadence_uart_create(hwaddr addr,
|
||||
qemu_irq irq,
|
||||
Chardev *chr)
|
||||
{
|
||||
DeviceState *dev;
|
||||
SysBusDevice *s;
|
||||
|
||||
dev = qdev_new(TYPE_CADENCE_UART);
|
||||
s = SYS_BUS_DEVICE(dev);
|
||||
qdev_prop_set_chr(dev, "chardev", chr);
|
||||
sysbus_realize_and_unref(s, &error_fatal);
|
||||
sysbus_mmio_map(s, 0, addr);
|
||||
sysbus_connect_irq(s, 0, irq);
|
||||
|
||||
return dev;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -127,17 +127,19 @@ void clock_set_source(Clock *clk, Clock *src);
|
|||
* @value: the clock's value, 0 means unclocked
|
||||
*
|
||||
* Set the local cached period value of @clk to @value.
|
||||
*
|
||||
* @return: true if the clock is changed.
|
||||
*/
|
||||
void clock_set(Clock *clk, uint64_t value);
|
||||
bool clock_set(Clock *clk, uint64_t value);
|
||||
|
||||
static inline void clock_set_hz(Clock *clk, unsigned hz)
|
||||
static inline bool clock_set_hz(Clock *clk, unsigned hz)
|
||||
{
|
||||
clock_set(clk, CLOCK_PERIOD_FROM_HZ(hz));
|
||||
return clock_set(clk, CLOCK_PERIOD_FROM_HZ(hz));
|
||||
}
|
||||
|
||||
static inline void clock_set_ns(Clock *clk, unsigned ns)
|
||||
static inline bool clock_set_ns(Clock *clk, unsigned ns)
|
||||
{
|
||||
clock_set(clk, CLOCK_PERIOD_FROM_NS(ns));
|
||||
return clock_set(clk, CLOCK_PERIOD_FROM_NS(ns));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -163,8 +165,9 @@ void clock_propagate(Clock *clk);
|
|||
*/
|
||||
static inline void clock_update(Clock *clk, uint64_t value)
|
||||
{
|
||||
clock_set(clk, value);
|
||||
clock_propagate(clk);
|
||||
if (clock_set(clk, value)) {
|
||||
clock_propagate(clk);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void clock_update_hz(Clock *clk, unsigned hz)
|
||||
|
|
@ -209,17 +212,4 @@ static inline bool clock_is_enabled(const Clock *clk)
|
|||
return clock_get(clk) != 0;
|
||||
}
|
||||
|
||||
static inline void clock_init(Clock *clk, uint64_t value)
|
||||
{
|
||||
clock_set(clk, value);
|
||||
}
|
||||
static inline void clock_init_hz(Clock *clk, uint64_t value)
|
||||
{
|
||||
clock_set_hz(clk, value);
|
||||
}
|
||||
static inline void clock_init_ns(Clock *clk, uint64_t value)
|
||||
{
|
||||
clock_set_ns(clk, value);
|
||||
}
|
||||
|
||||
#endif /* QEMU_HW_CLOCK_H */
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
typedef struct {
|
||||
SysBusDevice parent_obj;
|
||||
MemoryRegion iomem;
|
||||
unsigned offset_fmt_width;
|
||||
char *name;
|
||||
uint64_t size;
|
||||
} UnimplementedDeviceState;
|
||||
|
|
|
|||
|
|
@ -49,6 +49,12 @@ typedef struct AwSun8iEmacState {
|
|||
/** Interrupt output signal to notify CPU */
|
||||
qemu_irq irq;
|
||||
|
||||
/** Memory region where DMA transfers are done */
|
||||
MemoryRegion *dma_mr;
|
||||
|
||||
/** Address space used internally for DMA transfers */
|
||||
AddressSpace dma_as;
|
||||
|
||||
/** Generic Network Interface Controller (NIC) for networking API */
|
||||
NICState *nic;
|
||||
|
||||
|
|
|
|||
|
|
@ -70,12 +70,10 @@ Clock *qdev_get_clock_out(DeviceState *dev, const char *name);
|
|||
*
|
||||
* Set the source clock of input clock @name of device @dev to @source.
|
||||
* @source period update will be propagated to @name clock.
|
||||
*
|
||||
* Must be called before @dev is realized.
|
||||
*/
|
||||
static inline void qdev_connect_clock_in(DeviceState *dev, const char *name,
|
||||
Clock *source)
|
||||
{
|
||||
clock_set_source(qdev_get_clock_in(dev, name), source);
|
||||
}
|
||||
void qdev_connect_clock_in(DeviceState *dev, const char *name, Clock *source);
|
||||
|
||||
/**
|
||||
* qdev_alias_clock:
|
||||
|
|
|
|||
|
|
@ -71,6 +71,12 @@ typedef struct AwSdHostState {
|
|||
/** Interrupt output signal to notify CPU */
|
||||
qemu_irq irq;
|
||||
|
||||
/** Memory region where DMA transfers are done */
|
||||
MemoryRegion *dma_mr;
|
||||
|
||||
/** Address space used internally for DMA transfers */
|
||||
AddressSpace dma_as;
|
||||
|
||||
/** Number of bytes left in current DMA transfer */
|
||||
uint32_t transfer_cnt;
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,11 @@ static inline Int128 int128_rshift(Int128 a, int n)
|
|||
return a >> n;
|
||||
}
|
||||
|
||||
static inline Int128 int128_lshift(Int128 a, int n)
|
||||
{
|
||||
return a << n;
|
||||
}
|
||||
|
||||
static inline Int128 int128_add(Int128 a, Int128 b)
|
||||
{
|
||||
return a + b;
|
||||
|
|
@ -217,6 +222,17 @@ static inline Int128 int128_rshift(Int128 a, int n)
|
|||
}
|
||||
}
|
||||
|
||||
static inline Int128 int128_lshift(Int128 a, int n)
|
||||
{
|
||||
uint64_t l = a.lo << (n & 63);
|
||||
if (n >= 64) {
|
||||
return int128_make128(0, l);
|
||||
} else if (n > 0) {
|
||||
return int128_make128(l, (a.hi << n) | (a.lo >> (64 - n)));
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
static inline Int128 int128_add(Int128 a, Int128 b)
|
||||
{
|
||||
uint64_t lo = a.lo + b.lo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue