Re: [PATCH 1/3] hw/arm: Refactor struct arm_boot_info::get_dtb()

2024-01-21 Thread Alistair Francis
On Mon, Jan 15, 2024 at 2:36 PM Bin Meng wrote: > > At present we expect struct arm_boot_info::get_dtb() to return the > device tree pointer as well as the device tree size. However, this > is not necessary as we can get the device tree size via the device > tree header directly. Change get_dtb()

Re: [PATCH 1/3] hw/arm: Refactor struct arm_boot_info::get_dtb()

2024-01-15 Thread Philippe Mathieu-Daudé
On 15/1/24 05:34, Bin Meng wrote: At present we expect struct arm_boot_info::get_dtb() to return the device tree pointer as well as the device tree size. However, this is not necessary as we can get the device tree size via the device tree header directly. Change get_dtb() signature to drop the

[PATCH 1/3] hw/arm: Refactor struct arm_boot_info::get_dtb()

2024-01-14 Thread Bin Meng
At present we expect struct arm_boot_info::get_dtb() to return the device tree pointer as well as the device tree size. However, this is not necessary as we can get the device tree size via the device tree header directly. Change get_dtb() signature to drop the *size argument, and get the size by