static void pc_dimm_get_size(Object *obj, Visitor *v, const char *name,

                             void *opaque, Error **errp)

{

    int64_t value;

    MemoryRegion *mr;

    PCDIMMDevice *dimm = PC_DIMM(obj);



    mr = host_memory_backend_get_memory(dimm->hostmem, errp);

    value = memory_region_size(mr);



    visit_type_int(v, name, &value, errp);

}

static void pc_dimm_get_size(Object *obj, Visitor *v, const char *name,

                             void *opaque, Error **errp)

{

    int64_t value;

    MemoryRegion *mr;

    PCDIMMDevice *dimm = PC_DIMM(obj);



    mr = host_memory_backend_get_memory(dimm->hostmem, errp);

    value = memory_region_size(mr);



    visit_type_int(v, name, &value, errp);

}

static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,

                             void *VAR_3, Error **VAR_4)

{

    int64_t value;

    MemoryRegion *mr;

    PCDIMMDevice *dimm = PC_DIMM(VAR_0);



    mr = host_memory_backend_get_memory(dimm->hostmem, VAR_4);

    value = memory_region_size(mr);



    visit_type_int(VAR_1, VAR_2, &value, VAR_4);

}

static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,
void *VAR_3, Error **VAR_4)
{ int64_t value; MemoryRegion *mr; PCDIMMDevice *dimm = PC_DIMM(VAR_0); mr = host_memory_backend_get_memory(dimm->hostmem, VAR_4); value = memory_region_size(mr); visit_type_int(VAR_1, VAR_2, &value, VAR_4); }