qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PULL 01/58] target/microblaze: Use 'obj' in DEVICE() casts in mb_cpu_initfn()
Date: Thu, 15 May 2025 11:24:49 +0100	[thread overview]
Message-ID: <20250515102546.2149601-2-peter.maydell@linaro.org> (raw)
In-Reply-To: <20250515102546.2149601-1-peter.maydell@linaro.org>

We're about to make a change that removes the only other use
of the 'cpu' local variable in mb_cpu_initfn(); since the
DEVICE() casts work fine with the Object*, use that instead,
so that we can remove the local variable when we make the
following change.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250429132200.605611-2-peter.maydell@linaro.org
---
 target/microblaze/cpu.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c
index d069e40e70c..d895d683956 100644
--- a/target/microblaze/cpu.c
+++ b/target/microblaze/cpu.c
@@ -344,11 +344,11 @@ static void mb_cpu_initfn(Object *obj)
 
 #ifndef CONFIG_USER_ONLY
     /* Inbound IRQ and FIR lines */
-    qdev_init_gpio_in(DEVICE(cpu), microblaze_cpu_set_irq, 2);
-    qdev_init_gpio_in_named(DEVICE(cpu), mb_cpu_ns_axi_dp, "ns_axi_dp", 1);
-    qdev_init_gpio_in_named(DEVICE(cpu), mb_cpu_ns_axi_ip, "ns_axi_ip", 1);
-    qdev_init_gpio_in_named(DEVICE(cpu), mb_cpu_ns_axi_dc, "ns_axi_dc", 1);
-    qdev_init_gpio_in_named(DEVICE(cpu), mb_cpu_ns_axi_ic, "ns_axi_ic", 1);
+    qdev_init_gpio_in(DEVICE(obj), microblaze_cpu_set_irq, 2);
+    qdev_init_gpio_in_named(DEVICE(obj), mb_cpu_ns_axi_dp, "ns_axi_dp", 1);
+    qdev_init_gpio_in_named(DEVICE(obj), mb_cpu_ns_axi_ip, "ns_axi_ip", 1);
+    qdev_init_gpio_in_named(DEVICE(obj), mb_cpu_ns_axi_dc, "ns_axi_dc", 1);
+    qdev_init_gpio_in_named(DEVICE(obj), mb_cpu_ns_axi_ic, "ns_axi_ic", 1);
 #endif
 
     /* Restricted 'endianness' property is equivalent of 'little-endian' */
-- 
2.43.0



  reply	other threads:[~2025-05-15 10:35 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-15 10:24 [PULL 00/58] target-arm queue Peter Maydell
2025-05-15 10:24 ` Peter Maydell [this message]
2025-05-15 10:24 ` [PULL 02/58] target/microblaze: Delay gdb_register_coprocessor() to realize Peter Maydell
2025-05-15 10:24 ` [PULL 03/58] hw/core/cpu-common: Don't init gdbstub until cpu_exec_realizefn() Peter Maydell
2025-05-15 10:24 ` [PULL 04/58] target/arm: Present AArch64 gdbstub based on ARM_FEATURE_AARCH64 Peter Maydell
2025-05-15 10:24 ` [PULL 05/58] target/arm: Move aarch64 CPU property code to TYPE_ARM_CPU Peter Maydell
2025-05-15 10:24 ` [PULL 06/58] target/arm/kvm: don't check TYPE_AARCH64_CPU Peter Maydell
2025-05-15 10:24 ` [PULL 07/58] target/arm: Remove TYPE_AARCH64_CPU Peter Maydell
2025-05-15 10:24 ` [PULL 08/58] rust: pl011: Cut down amount of text quoted from PL011 TRM Peter Maydell
2025-05-15 10:24 ` [PULL 09/58] hw/arm: Replace TABs for spaces in OMAP board and device code Peter Maydell
2025-05-15 10:24 ` [PULL 10/58] MAINTAINERS: Add an entry for the Bananapi machine Peter Maydell
2025-05-15 10:24 ` [PULL 11/58] target/arm: Replace target_ulong -> vaddr for HWBreakpoint Peter Maydell
2025-05-15 10:25 ` [PULL 12/58] include/system/hvf: missing vaddr include Peter Maydell
2025-05-15 10:25 ` [PULL 13/58] meson: add common libs for target and target_system Peter Maydell
2025-05-15 10:25 ` [PULL 14/58] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h Peter Maydell
2025-05-15 10:25 ` [PULL 15/58] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub Peter Maydell
2025-05-15 10:25 ` [PULL 16/58] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c Peter Maydell
2025-05-15 10:25 ` [PULL 17/58] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency Peter Maydell
2025-05-15 10:25 ` [PULL 18/58] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Peter Maydell
2025-05-15 10:25 ` [PULL 19/58] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features Peter Maydell
2025-05-15 10:25 ` [PULL 20/58] target/arm/cpu: compile file twice (user, system) only Peter Maydell
2025-05-15 10:25 ` [PULL 21/58] target/arm/cpu32-stubs.c: compile file twice (user, system) Peter Maydell
2025-05-15 10:25 ` [PULL 22/58] tcg: add vaddr type for helpers Peter Maydell
2025-05-15 10:25 ` [PULL 23/58] target/arm/helper: use vaddr instead of target_ulong for exception_pc_alignment Peter Maydell
2025-05-15 10:25 ` [PULL 24/58] target/arm/helper: use vaddr instead of target_ulong for probe_access Peter Maydell
2025-05-15 10:25 ` [PULL 25/58] target/arm/helper: extract common helpers Peter Maydell
2025-05-15 10:25 ` [PULL 26/58] target/arm/debug_helper: only include " Peter Maydell
2025-05-15 10:25 ` [PULL 27/58] target/arm/debug_helper: remove target_ulong Peter Maydell
2025-05-15 10:25 ` [PULL 28/58] target/arm/debug_helper: compile file twice (user, system) Peter Maydell
2025-05-15 10:25 ` [PULL 29/58] target/arm/helper: restrict include to common helpers Peter Maydell
2025-05-15 10:25 ` [PULL 30/58] target/arm/helper: replace target_ulong by vaddr Peter Maydell
2025-05-15 10:25 ` [PULL 31/58] target/arm/helper: expose aarch64 cpu registration Peter Maydell
2025-05-15 10:25 ` [PULL 32/58] target/arm/helper: remove remaining TARGET_AARCH64 Peter Maydell
2025-05-15 10:25 ` [PULL 33/58] target/arm/helper: compile file twice (user, system) Peter Maydell
2025-05-15 10:25 ` [PULL 34/58] target/arm/vfp_fpscr: " Peter Maydell
2025-05-15 10:25 ` [PULL 35/58] target/arm/arch_dump: remove TARGET_AARCH64 conditionals Peter Maydell
2025-05-15 10:25 ` [PULL 36/58] target/arm/arch_dump: compile file once (system) Peter Maydell
2025-05-15 10:25 ` [PULL 37/58] target/arm/arm-powerctl: " Peter Maydell
2025-05-15 10:25 ` [PULL 38/58] target/arm/cortex-regs: " Peter Maydell
2025-05-15 10:25 ` [PULL 39/58] target/arm/ptw: replace target_ulong with int64_t Peter Maydell
2025-05-15 10:25 ` [PULL 40/58] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw Peter Maydell
2025-05-15 10:25 ` [PULL 41/58] target/arm/ptw: compile file once (system) Peter Maydell
2025-05-15 10:25 ` [PULL 42/58] target/arm/meson: accelerator files are not needed in user mode Peter Maydell
2025-05-15 10:25 ` [PULL 43/58] target/arm/kvm-stub: compile file once (system) Peter Maydell
2025-05-15 10:25 ` [PULL 44/58] target/arm/machine: reduce migration include to avoid target specific definitions Peter Maydell
2025-05-15 10:25 ` [PULL 45/58] target/arm/machine: remove TARGET_AARCH64 from migration state Peter Maydell
2025-05-15 10:25 ` [PULL 46/58] target/arm/machine: move cpu_post_load kvm bits to kvm_arm_cpu_post_load function Peter Maydell
2025-05-15 10:25 ` [PULL 47/58] target/arm/kvm-stub: add missing stubs Peter Maydell
2025-05-15 10:25 ` [PULL 48/58] target/arm/machine: compile file once (system) Peter Maydell
2025-05-15 10:25 ` [PULL 49/58] target/arm/tcg/vec_internal: use forward declaration for CPUARMState Peter Maydell
2025-05-15 10:25 ` [PULL 50/58] target/arm/tcg/crypto_helper: compile file once Peter Maydell
2025-05-15 10:25 ` [PULL 51/58] target/arm/tcg/hflags: compile file twice (system, user) Peter Maydell
2025-05-15 10:25 ` [PULL 52/58] target/arm/tcg/iwmmxt_helper: " Peter Maydell
2025-05-15 10:25 ` [PULL 53/58] target/arm/tcg/neon_helper: " Peter Maydell
2025-05-15 10:25 ` [PULL 54/58] target/arm/tcg/tlb_helper: " Peter Maydell
2025-05-15 10:25 ` [PULL 55/58] target/arm/helper: restrict define_tlb_insn_regs to system target Peter Maydell
2025-05-15 10:25 ` [PULL 56/58] target/arm/tcg/tlb-insns: compile file once (system) Peter Maydell
2025-05-15 10:25 ` [PULL 57/58] target/arm/tcg/arith_helper: compile file once Peter Maydell
2025-05-15 10:25 ` [PULL 58/58] target/arm/tcg/vfp_helper: compile file twice (system, user) Peter Maydell
2025-05-15 21:53 ` [PULL 00/58] target-arm queue Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250515102546.2149601-2-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).