mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
hw/core/register: remove the `register_finalize_block' function
This function is now unused. Drop it. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Francisco Iglesias <francisco.iglesias@amd.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com> Signed-off-by: Luc Michel <luc.michel@amd.com> Message-ID: <20251017161809.235740-5-luc.michel@amd.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
f423f7ebac
commit
2fcb0f1f28
@@ -322,10 +322,6 @@ static void register_array_finalize(Object *obj)
|
||||
g_free(r_array->r);
|
||||
}
|
||||
|
||||
void register_finalize_block(RegisterInfoArray *r_array)
|
||||
{
|
||||
}
|
||||
|
||||
static const TypeInfo register_array_info = {
|
||||
.name = TYPE_REGISTER_ARRAY,
|
||||
.parent = TYPE_OBJECT,
|
||||
|
||||
@@ -209,18 +209,4 @@ RegisterInfoArray *register_init_block64(DeviceState *owner,
|
||||
bool debug_enabled,
|
||||
uint64_t memory_size);
|
||||
|
||||
/**
|
||||
* This function should be called to cleanup the registers that were initialized
|
||||
* when calling register_init_block32(). This function should only be called
|
||||
* from the device's instance_finalize function.
|
||||
*
|
||||
* Any memory operations that the device performed that require cleanup (such
|
||||
* as creating subregions) need to be called before calling this function.
|
||||
*
|
||||
* @r_array: A structure containing all of the registers, as returned by
|
||||
* register_init_block32()
|
||||
*/
|
||||
|
||||
void register_finalize_block(RegisterInfoArray *r_array);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user