2015-08-21 07:04:50 +00:00
|
|
|
/* By Dang Hoang Vu <dang.hvu -at- gmail.com>, 2015 */
|
|
|
|
|
|
|
|
#ifndef UC_QEMU_H
|
|
|
|
#define UC_QEMU_H
|
|
|
|
|
|
|
|
struct uc_struct;
|
|
|
|
|
|
|
|
#define OPC_BUF_SIZE 640
|
|
|
|
|
|
|
|
#include "sysemu/sysemu.h"
|
|
|
|
#include "sysemu/cpus.h"
|
|
|
|
#include "exec/cpu-common.h"
|
|
|
|
#include "exec/memory.h"
|
|
|
|
|
|
|
|
#include "qemu/thread.h"
|
|
|
|
#include "include/qom/cpu.h"
|
|
|
|
|
|
|
|
#include "vl.h"
|
|
|
|
|
2018-02-20 13:35:41 +00:00
|
|
|
// These two structs are originally from qemu/include/exec/cpu-all.h
|
2015-08-21 07:04:50 +00:00
|
|
|
// Temporarily moved here since there is circular inclusion.
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
MemoryRegion *mr;
|
|
|
|
void *buffer;
|
|
|
|
hwaddr addr;
|
|
|
|
hwaddr len;
|
2018-02-13 01:59:51 +00:00
|
|
|
bool in_use;
|
2015-08-21 07:04:50 +00:00
|
|
|
} BounceBuffer;
|
|
|
|
|
|
|
|
typedef struct RAMList {
|
|
|
|
/* Protected by the iothread lock. */
|
|
|
|
unsigned long *dirty_memory[DIRTY_MEMORY_NUM];
|
|
|
|
RAMBlock *mru_block;
|
2018-02-18 23:37:38 +00:00
|
|
|
QLIST_HEAD(, RAMBlock) blocks;
|
2015-08-21 07:04:50 +00:00
|
|
|
uint32_t version;
|
|
|
|
} RAMList;
|
|
|
|
|
|
|
|
#endif
|