]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/microblaze: Use 'obj' in DEVICE() casts in mb_cpu_initfn()
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 14 May 2025 13:29:45 +0000 (14:29 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 14 May 2025 13:29:45 +0000 (14:29 +0100)
commit9c6675e8a5824f4c41c3d122c4b848a67d9d0350
tree8d3017c8f5670972a867939d2f9de847436df329
parent864813878951b44e964eb4c012d832fd21f8cc0c
target/microblaze: Use 'obj' in DEVICE() casts in mb_cpu_initfn()

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