riscv: Pass Object to register_cpu_props instead of DeviceState
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 3 Mar 2023 13:12:48 +0000 (14:12 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Mar 2023 16:09:31 +0000 (08:09 -0800)
commitc01756a76eaa3f315b449a2557a4d14d608eed9c
tree0b21c5588a7cb38796d34206183565f422476aae
parent7c7173679fbe636ad16960b93c5985141d8fa233
riscv: Pass Object to register_cpu_props instead of DeviceState

One can extract the DeviceState pointer from the Object pointer, so pass
the Object for future commits to access other fields of Object.

No functional changes intended.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Message-ID: <20230303131252.892893-2-alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
target/riscv/cpu.c