Revision bb28eb37 device_tree.c

b/device_tree.c
154 154
    return r;
155 155
}
156 156

  
157
int qemu_devtree_setprop_u64(void *fdt, const char *node_path,
158
                             const char *property, uint64_t val)
159
{
160
    val = cpu_to_be64(val);
161
    return qemu_devtree_setprop(fdt, node_path, property, &val, sizeof(val));
162
}
163

  
157 164
int qemu_devtree_setprop_string(void *fdt, const char *node_path,
158 165
                                const char *property, const char *string)
159 166
{

Also available in: Unified diff