qemu-config: add error propagation to qemu_config_parse
[qemu/ar7.git] / include / hw / core / generic-loader.h
blob19d87b39c8b093a3e49a89edced20ab765bc5efc
1 /*
2 * Generic Loader
4 * Copyright (C) 2014 Li Guang
5 * Written by Li Guang <lig.fnst@cn.fujitsu.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
18 #ifndef GENERIC_LOADER_H
19 #define GENERIC_LOADER_H
21 #include "elf.h"
22 #include "hw/qdev-core.h"
23 #include "qom/object.h"
25 struct GenericLoaderState {
26 /* <private> */
27 DeviceState parent_obj;
29 /* <public> */
30 CPUState *cpu;
32 uint64_t addr;
33 uint64_t data;
34 uint8_t data_len;
35 uint32_t cpu_num;
37 char *file;
39 bool force_raw;
40 bool data_be;
41 bool set_pc;
44 #define TYPE_GENERIC_LOADER "loader"
45 OBJECT_DECLARE_SIMPLE_TYPE(GenericLoaderState, GENERIC_LOADER)
47 #endif