[Qemu-commits] [qemu/qemu] 31cb76: hw/char/pl011: fix baud rate calculation

2022-10-20 Thread Paolo Bonzini via Qemu-commits
absolute values.

Reviewed-by: Philippe Mathieu-Daudé 
Signed-off-by: Richard Henderson 
Message-id: 20221020030641.2066807-9-richard.hender...@linaro.org
Signed-off-by: Peter Maydell 


  Commit: abb80995d722814c2e3f314629ef4c5700424ae7
  
https://github.com/qemu/qemu/commit/abb80995d722814c2e3f314629ef4c5700424ae7
  Author: Richard Henderson 
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
M target/arm/cpu-param.h
M target/arm/cpu.c
M target/arm/translate-a64.c
M target/arm/translate-m-nocp.c
M target/arm/translate.c
M target/arm/translate.h

  Log Message:
  ---
  target/arm: Enable TARGET_TB_PCREL

Signed-off-by: Richard Henderson 
Message-id: 20221020030641.2066807-10-richard.hender...@linaro.org
Reviewed-by: Peter Maydell 
Signed-off-by: Peter Maydell 


  Commit: 5db899303799e49209016a93289b8694afa1449e
  
https://github.com/qemu/qemu/commit/5db899303799e49209016a93289b8694afa1449e
  Author: Peter Maydell 
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
M hw/ide/microdrive.c

  Log Message:
  ---
  hw/ide/microdrive: Use device_cold_reset() for self-resets

Currently the microdrive code uses device_legacy_reset() to reset
itself, and has its reset method call reset on the IDE bus as the
last thing it does.  Switch to using device_cold_reset().

The only concrete microdrive device is the TYPE_DSCM1; it is not
command-line pluggable, so it is used only by the old pxa2xx Arm
boards 'akita', 'borzoi', 'spitz', 'terrier' and 'tosa'.

You might think that this would result in the IDE bus being
reset automatically, but it does not, because the IDEBus type
does not set the BusClass::reset method. Instead the controller
must explicitly call ide_bus_reset(). We therefore leave that
call in md_reset().

Note also that because the PCMCIA card device is a direct subclass of
TYPE_DEVICE and we don't model the PCMCIA controller-to-card
interface as a qbus, PCMCIA cards are not on any qbus and so they
don't get reset when the system is reset.  The reset only happens via
the dscm1_attach() and dscm1_detach() functions during
machine creation.

Because our aim here is merely to try to get rid of calls to the
device_legacy_reset() function, we leave these other dubious
reset-related issues alone.  (They all stem from this code being
absolutely ancient.)

Signed-off-by: Peter Maydell 
Reviewed-by: Philippe Mathieu-Daudé 
Message-id: 20221013174042.1602926-1-peter.mayd...@linaro.org


  Commit: 0529245488865038344d64fff7ee05864d3d17f6
  
https://github.com/qemu/qemu/commit/0529245488865038344d64fff7ee05864d3d17f6
  Author: Stefan Hajnoczi 
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
M hw/char/pl011.c
M hw/ide/microdrive.c
M target/arm/cpu-param.h
M target/arm/cpu.c
M target/arm/cpu.h
M target/arm/cpu_tcg.c
M target/arm/helper.c
M target/arm/internals.h
M target/arm/mte_helper.c
M target/arm/ptw.c
M target/arm/sve_helper.c
M target/arm/sve_ldst_internal.h
M target/arm/tlb_helper.c
M target/arm/translate-a32.h
M target/arm/translate-a64.c
M target/arm/translate-m-nocp.c
M target/arm/translate-mve.c
M target/arm/translate-vfp.c
M target/arm/translate.c
M target/arm/translate.h

  Log Message:
  ---
  Merge tag 'pull-target-arm-20221020' of 
https://git.linaro.org/people/pmaydell/qemu-arm into staging

target-arm queue:
 * Switch to TARGET_TB_PCREL
 * More pagetable-walk refactoring preparatory to HAFDBS
 * update the cortex-a15 MIDR to latest rev
 * hw/char/pl011: fix baud rate calculation
 * hw/ide/microdrive: Use device_cold_reset() for self-resets

# -BEGIN PGP SIGNATURE-
#
# iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmNRPQ4ZHHBldGVyLm1h
# eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3l/BD/0ZAUmL9FtLHUtf9Y7S1sb/
# nuKcbaXim88AWRgSpiCJaSCIiyxNPydrRwfC1wZ7kQEXBKczR9x3ZsE8jdU6lway
# muqaLdzpBKVYZSh0Q03+3iufbm7s3hGxvCvNj0s5986ITmW86ndZM9CGm4bkyB6B
# KKN7v7lGPeYCF/sR+Ax/++eXK2BOALoPFF7bWycmJNcO4aYXE12onDNIDJU9CyCu
# y+nqPXTM5xAJ950iCOmdGKnMwOX1sBfZYUvCuG4tS63SYnjnKThyfLDttggapTB0
# T4I1SZ22+Bh7UuGEn9JAIeVZK4UUkYu78ufnX7FT2NDOFJJV1BJtKRe8UT/CsZha
# n2eAuVcddBwEStAhgUIvpbDm6WjtH3xiQWPphFX9bZl4AD1uI3sx/xe1b7PsPBTc
# e8kYRVW8zkRlCbC2BaJnPhcDiujf6AE2Sq3A8hgG1izS6juvHzzk9zn69TTbodIl
# ETtt+jn9E/OtlLC7bLJGgudGerqBELubwwVAHqYo207fvhLLiMMAhm0NbZmnJCqU
# hEgg6a9w4Ss3CYx5oNagWZ2Nfw5ru5KiwjZJ1wltjbBEQzp4y42a4XFWRvcXFFiz
# 3yGyvLmtHBywsIRpMc8IpXLC1SdD0fgT8/5VbWCHRziFjQLNCiuihsKkdiZOcJ22
# MoetN7iJxSDPCbHUp8ldsg==
# =NEl6
# -END PGP SIGNATURE-
# gpg: Signature made Thu 20 Oct 2022 08:20:30 EDT
# gpg:using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
# gpg:issuer "peter.mayd...@linaro.org"
# gpg: Good signature from "Peter Maydell " [full]
# gpg: aka "Peter Maydell " [full]
# gpg: aka "Peter Maydell " 
[full]
# gpg: aka "Peter 

[Qemu-commits] [qemu/qemu] 31cb76: hw/char/pl011: fix baud rate calculation

2022-10-20 Thread Paolo Bonzini via Qemu-commits
absolute values.

Reviewed-by: Philippe Mathieu-Daudé 
Signed-off-by: Richard Henderson 
Message-id: 20221020030641.2066807-9-richard.hender...@linaro.org
Signed-off-by: Peter Maydell 


  Commit: abb80995d722814c2e3f314629ef4c5700424ae7
  
https://github.com/qemu/qemu/commit/abb80995d722814c2e3f314629ef4c5700424ae7
  Author: Richard Henderson 
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
M target/arm/cpu-param.h
M target/arm/cpu.c
M target/arm/translate-a64.c
M target/arm/translate-m-nocp.c
M target/arm/translate.c
M target/arm/translate.h

  Log Message:
  ---
  target/arm: Enable TARGET_TB_PCREL

Signed-off-by: Richard Henderson 
Message-id: 20221020030641.2066807-10-richard.hender...@linaro.org
Reviewed-by: Peter Maydell 
Signed-off-by: Peter Maydell 


  Commit: 5db899303799e49209016a93289b8694afa1449e
  
https://github.com/qemu/qemu/commit/5db899303799e49209016a93289b8694afa1449e
  Author: Peter Maydell 
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
M hw/ide/microdrive.c

  Log Message:
  ---
  hw/ide/microdrive: Use device_cold_reset() for self-resets

Currently the microdrive code uses device_legacy_reset() to reset
itself, and has its reset method call reset on the IDE bus as the
last thing it does.  Switch to using device_cold_reset().

The only concrete microdrive device is the TYPE_DSCM1; it is not
command-line pluggable, so it is used only by the old pxa2xx Arm
boards 'akita', 'borzoi', 'spitz', 'terrier' and 'tosa'.

You might think that this would result in the IDE bus being
reset automatically, but it does not, because the IDEBus type
does not set the BusClass::reset method. Instead the controller
must explicitly call ide_bus_reset(). We therefore leave that
call in md_reset().

Note also that because the PCMCIA card device is a direct subclass of
TYPE_DEVICE and we don't model the PCMCIA controller-to-card
interface as a qbus, PCMCIA cards are not on any qbus and so they
don't get reset when the system is reset.  The reset only happens via
the dscm1_attach() and dscm1_detach() functions during
machine creation.

Because our aim here is merely to try to get rid of calls to the
device_legacy_reset() function, we leave these other dubious
reset-related issues alone.  (They all stem from this code being
absolutely ancient.)

Signed-off-by: Peter Maydell 
Reviewed-by: Philippe Mathieu-Daudé 
Message-id: 20221013174042.1602926-1-peter.mayd...@linaro.org


  Commit: 0529245488865038344d64fff7ee05864d3d17f6
  
https://github.com/qemu/qemu/commit/0529245488865038344d64fff7ee05864d3d17f6
  Author: Stefan Hajnoczi 
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
M hw/char/pl011.c
M hw/ide/microdrive.c
M target/arm/cpu-param.h
M target/arm/cpu.c
M target/arm/cpu.h
M target/arm/cpu_tcg.c
M target/arm/helper.c
M target/arm/internals.h
M target/arm/mte_helper.c
M target/arm/ptw.c
M target/arm/sve_helper.c
M target/arm/sve_ldst_internal.h
M target/arm/tlb_helper.c
M target/arm/translate-a32.h
M target/arm/translate-a64.c
M target/arm/translate-m-nocp.c
M target/arm/translate-mve.c
M target/arm/translate-vfp.c
M target/arm/translate.c
M target/arm/translate.h

  Log Message:
  ---
  Merge tag 'pull-target-arm-20221020' of 
https://git.linaro.org/people/pmaydell/qemu-arm into staging

target-arm queue:
 * Switch to TARGET_TB_PCREL
 * More pagetable-walk refactoring preparatory to HAFDBS
 * update the cortex-a15 MIDR to latest rev
 * hw/char/pl011: fix baud rate calculation
 * hw/ide/microdrive: Use device_cold_reset() for self-resets

# -BEGIN PGP SIGNATURE-
#
# iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmNRPQ4ZHHBldGVyLm1h
# eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3l/BD/0ZAUmL9FtLHUtf9Y7S1sb/
# nuKcbaXim88AWRgSpiCJaSCIiyxNPydrRwfC1wZ7kQEXBKczR9x3ZsE8jdU6lway
# muqaLdzpBKVYZSh0Q03+3iufbm7s3hGxvCvNj0s5986ITmW86ndZM9CGm4bkyB6B
# KKN7v7lGPeYCF/sR+Ax/++eXK2BOALoPFF7bWycmJNcO4aYXE12onDNIDJU9CyCu
# y+nqPXTM5xAJ950iCOmdGKnMwOX1sBfZYUvCuG4tS63SYnjnKThyfLDttggapTB0
# T4I1SZ22+Bh7UuGEn9JAIeVZK4UUkYu78ufnX7FT2NDOFJJV1BJtKRe8UT/CsZha
# n2eAuVcddBwEStAhgUIvpbDm6WjtH3xiQWPphFX9bZl4AD1uI3sx/xe1b7PsPBTc
# e8kYRVW8zkRlCbC2BaJnPhcDiujf6AE2Sq3A8hgG1izS6juvHzzk9zn69TTbodIl
# ETtt+jn9E/OtlLC7bLJGgudGerqBELubwwVAHqYo207fvhLLiMMAhm0NbZmnJCqU
# hEgg6a9w4Ss3CYx5oNagWZ2Nfw5ru5KiwjZJ1wltjbBEQzp4y42a4XFWRvcXFFiz
# 3yGyvLmtHBywsIRpMc8IpXLC1SdD0fgT8/5VbWCHRziFjQLNCiuihsKkdiZOcJ22
# MoetN7iJxSDPCbHUp8ldsg==
# =NEl6
# -END PGP SIGNATURE-
# gpg: Signature made Thu 20 Oct 2022 08:20:30 EDT
# gpg:using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
# gpg:issuer "peter.mayd...@linaro.org"
# gpg: Good signature from "Peter Maydell " [full]
# gpg: aka "Peter Maydell " [full]
# gpg: aka "Peter Maydell " 
[full]
# gpg: aka "Peter