platform.h move #3
This commit is contained in:
parent
f4b375c651
commit
fac6a66860
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -63,13 +63,13 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\..\..\include\list.h" />
|
<ClInclude Include="..\..\..\include\list.h" />
|
||||||
<ClInclude Include="..\..\..\include\platform.h" />
|
|
||||||
<ClInclude Include="..\..\..\include\qemu.h" />
|
<ClInclude Include="..\..\..\include\qemu.h" />
|
||||||
<ClInclude Include="..\..\..\include\uc_priv.h" />
|
<ClInclude Include="..\..\..\include\uc_priv.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\arm.h" />
|
<ClInclude Include="..\..\..\include\unicorn\arm.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\arm64.h" />
|
<ClInclude Include="..\..\..\include\unicorn\arm64.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\m68k.h" />
|
<ClInclude Include="..\..\..\include\unicorn\m68k.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\mips.h" />
|
<ClInclude Include="..\..\..\include\unicorn\mips.h" />
|
||||||
|
<ClInclude Include="..\..\..\include\unicorn\platform.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\sparc.h" />
|
<ClInclude Include="..\..\..\include\unicorn\sparc.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\unicorn.h" />
|
<ClInclude Include="..\..\..\include\unicorn\unicorn.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\x86.h" />
|
<ClInclude Include="..\..\..\include\unicorn\x86.h" />
|
||||||
|
|
|
@ -493,8 +493,6 @@
|
||||||
<ClInclude Include="..\..\..\include\unicorn\sparc.h" />
|
<ClInclude Include="..\..\..\include\unicorn\sparc.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\unicorn.h" />
|
<ClInclude Include="..\..\..\include\unicorn\unicorn.h" />
|
||||||
<ClInclude Include="..\..\..\include\unicorn\x86.h" />
|
<ClInclude Include="..\..\..\include\unicorn\x86.h" />
|
||||||
<ClInclude Include="..\..\..\include\platform.h">
|
<ClInclude Include="..\..\..\include\unicorn\platform.h" />
|
||||||
<Filter>priv</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef UC_LLIST_H
|
#ifndef UC_LLIST_H
|
||||||
#define UC_LLIST_H
|
#define UC_LLIST_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
struct list_item {
|
struct list_item {
|
||||||
struct list_item *next;
|
struct list_item *next;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef UC_PRIV_H
|
#ifndef UC_PRIV_H
|
||||||
#define UC_PRIV_H
|
#define UC_PRIV_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "qemu.h"
|
#include "qemu.h"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4201)
|
#pragma warning(disable:4201)
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
// GCC SPARC toolchain has a default macro called "sparc" which breaks
|
// GCC SPARC toolchain has a default macro called "sparc" which breaks
|
||||||
// compilation
|
// compilation
|
||||||
|
|
|
@ -12,7 +12,7 @@ extern "C" {
|
||||||
#pragma comment(lib, "unicorn.lib")
|
#pragma comment(lib, "unicorn.lib")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#if defined(UNICORN_HAS_OSXKERNEL)
|
#if defined(UNICORN_HAS_OSXKERNEL)
|
||||||
#include <libkern/libkern.h>
|
#include <libkern/libkern.h>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
// Memory-Management Register for instructions IDTR, GDTR, LDTR, TR.
|
// Memory-Management Register for instructions IDTR, GDTR, LDTR, TR.
|
||||||
// Borrow from SegmentCache in qemu/target-i386/cpu.h
|
// Borrow from SegmentCache in qemu/target-i386/cpu.h
|
||||||
|
|
2
list.c
2
list.c
|
@ -1,5 +1,5 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
|
||||||
// simple linked list implementation
|
// simple linked list implementation
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef _QEMU_ELF_H
|
#ifndef _QEMU_ELF_H
|
||||||
#define _QEMU_ELF_H
|
#define _QEMU_ELF_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
/* 32-bit ELF base types. */
|
/* 32-bit ELF base types. */
|
||||||
typedef uint32_t Elf32_Addr;
|
typedef uint32_t Elf32_Addr;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
/* hwaddr is the type of a physical address (its size can
|
/* hwaddr is the type of a physical address (its size can
|
||||||
be different from 'target_ulong'). */
|
be different from 'target_ulong'). */
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
typedef uint64_t hwaddr;
|
typedef uint64_t hwaddr;
|
||||||
#define HWADDR_MAX UINT64_MAX
|
#define HWADDR_MAX UINT64_MAX
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#define DIRTY_MEMORY_CODE 0
|
#define DIRTY_MEMORY_CODE 0
|
||||||
#define DIRTY_MEMORY_NUM 1 /* num of dirty bits */
|
#define DIRTY_MEMORY_NUM 1 /* num of dirty bits */
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "exec/cpu-common.h"
|
#include "exec/cpu-common.h"
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
|
|
@ -42,7 +42,7 @@ these four paragraphs for those parts of this code that are retained.
|
||||||
#include <sunmath.h>
|
#include <sunmath.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "config-host.h"
|
#include "config-host.h"
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef __GLIB_COMPAT_H
|
#ifndef __GLIB_COMPAT_H
|
||||||
#define __GLIB_COMPAT_H
|
#define __GLIB_COMPAT_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#include "qemu/compiler.h"
|
#include "qemu/compiler.h"
|
||||||
#include "qapi-types.h"
|
#include "qapi-types.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class representing internal errors within QEMU. An error has a ErrorClass
|
* A class representing internal errors within QEMU. An error has a ErrorClass
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#ifndef QBOOL_H
|
#ifndef QBOOL_H
|
||||||
#define QBOOL_H
|
#define QBOOL_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qapi/qmp/qobject.h"
|
#include "qapi/qmp/qobject.h"
|
||||||
|
|
||||||
typedef struct QBool {
|
typedef struct QBool {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include "qapi/qmp/qobject.h"
|
#include "qapi/qmp/qobject.h"
|
||||||
#include "qapi/qmp/qlist.h"
|
#include "qapi/qmp/qlist.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#define QDICT_BUCKET_MAX 512
|
#define QDICT_BUCKET_MAX 512
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#ifndef QFLOAT_H
|
#ifndef QFLOAT_H
|
||||||
#define QFLOAT_H
|
#define QFLOAT_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qapi/qmp/qobject.h"
|
#include "qapi/qmp/qobject.h"
|
||||||
|
|
||||||
typedef struct QFloat {
|
typedef struct QFloat {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#ifndef QINT_H
|
#ifndef QINT_H
|
||||||
#define QINT_H
|
#define QINT_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qapi/qmp/qobject.h"
|
#include "qapi/qmp/qobject.h"
|
||||||
|
|
||||||
typedef struct QInt {
|
typedef struct QInt {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#ifndef QSTRING_H
|
#ifndef QSTRING_H
|
||||||
#define QSTRING_H
|
#define QSTRING_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qapi/qmp/qobject.h"
|
#include "qapi/qmp/qobject.h"
|
||||||
|
|
||||||
typedef struct QString {
|
typedef struct QString {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef BITOPS_H
|
#ifndef BITOPS_H
|
||||||
#define BITOPS_H
|
#define BITOPS_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "host-utils.h"
|
#include "host-utils.h"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define BSWAP_H
|
#define BSWAP_H
|
||||||
|
|
||||||
#include "config-host.h"
|
#include "config-host.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "fpu/softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define INT128_H
|
#define INT128_H
|
||||||
|
|
||||||
//#include <assert.h>
|
//#include <assert.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
typedef struct Int128 Int128;
|
typedef struct Int128 Int128;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define QEMU_LOG_H
|
#define QEMU_LOG_H
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qemu/compiler.h"
|
#include "qemu/compiler.h"
|
||||||
#include "qom/cpu.h"
|
#include "qom/cpu.h"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "config-host.h"
|
#include "config-host.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
#include <sys/signal.h>
|
#include <sys/signal.h>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
#define WEXITSTATUS(x) (x)
|
#define WEXITSTATUS(x) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
|
#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
|
||||||
/* [u]int_fast*_t not in <sys/int_types.h> */
|
/* [u]int_fast*_t not in <sys/int_types.h> */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef QEMU_RANGE_H
|
#ifndef QEMU_RANGE_H
|
||||||
#define QEMU_RANGE_H
|
#define QEMU_RANGE_H
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <qemu/typedefs.h>
|
#include <qemu/typedefs.h>
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __QEMU_THREAD_H
|
#ifndef __QEMU_THREAD_H
|
||||||
#define __QEMU_THREAD_H 1
|
#define __QEMU_THREAD_H 1
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
typedef struct QemuThread QemuThread;
|
typedef struct QemuThread QemuThread;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#define QEMU_OBJECT_H
|
#define QEMU_OBJECT_H
|
||||||
|
|
||||||
#include "glib_compat.h"
|
#include "glib_compat.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "tcg-op.h"
|
#include "tcg-op.h"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "internals.h"
|
#include "internals.h"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "sysemu/cpus.h"
|
#include "sysemu/cpus.h"
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
* CPUID Fn8000_0008_ECX[ApicIdCoreIdSize[3:0]] is set to apicid_core_width().
|
* CPUID Fn8000_0008_ECX[ApicIdCoreIdSize[3:0]] is set to apicid_core_width().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "qemu/bitops.h"
|
#include "qemu/bitops.h"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "qemu/host-utils.h"
|
#include "qemu/host-utils.h"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "exec/helper-proto.h"
|
#include "exec/helper-proto.h"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qemu/host-utils.h"
|
#include "qemu/host-utils.h"
|
||||||
|
|
||||||
/* This file is compiled once, and thus we can't include the standard
|
/* This file is compiled once, and thus we can't include the standard
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qemu/host-utils.h"
|
#include "qemu/host-utils.h"
|
||||||
|
|
||||||
#ifndef CONFIG_INT128
|
#ifndef CONFIG_INT128
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define HUGETLBFS_MAGIC 0x958458f6
|
#define HUGETLBFS_MAGIC 0x958458f6
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include "config-host.h"
|
#include "config-host.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
|
@ -38,8 +38,8 @@
|
||||||
|
|
||||||
// posix specific includes
|
// posix specific includes
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
struct SegmentDescriptor {
|
struct SegmentDescriptor {
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@ Test for uc_emu_stop() in code hook not always stopping the emu at the current i
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#include "pthread.h"
|
#include "pthread.h"
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
static void hook_block(uc_engine *uc, uint64_t address, uint32_t size, void *user_data) {
|
static void hook_block(uc_engine *uc, uint64_t address, uint32_t size, void *user_data) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
uint64_t starts[] = {0x10000000, 0x110004000ll};
|
uint64_t starts[] = {0x10000000, 0x110004000ll};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#include "pthread.h"
|
#include "pthread.h"
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
|
@ -27,8 +27,8 @@ but that the code hook is just not occurring.
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -18,9 +18,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
#define ADDRESS 0x1000000
|
#define ADDRESS 0x1000000
|
||||||
|
|
|
@ -33,8 +33,8 @@ background.
|
||||||
|
|
||||||
// posix specific
|
// posix specific
|
||||||
#else // _MSC_VER
|
#else // _MSC_VER
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#include "pthread.h"
|
#include "pthread.h"
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
|
@ -9,7 +9,7 @@ call to uc_emu_start(). See issue #78 for more details:
|
||||||
https://github.com/unicorn-engine/unicorn/issues/78
|
https://github.com/unicorn-engine/unicorn/issues/78
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assert that err matches expect
|
* Assert that err matches expect
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
uint64_t trunc_page(uint64_t addr)
|
uint64_t trunc_page(uint64_t addr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// emulation by counts of instruction code
|
// emulation by counts of instruction code
|
||||||
//
|
//
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
#define DEBUG 1
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
/* Called before every test to set up a new instance */
|
/* Called before every test to set up a new instance */
|
||||||
static int setup(void **state)
|
static int setup(void **state)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#define OK(x) uc_assert_success(x)
|
#define OK(x) uc_assert_success(x)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Test PC change during the callback. by Nguyen Anh Quynh, 2016
|
// Test PC change during the callback. by Nguyen Anh Quynh, 2016
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#define OK(x) uc_assert_success(x)
|
#define OK(x) uc_assert_success(x)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#define RIP_NEXT_TO_THE_SELFMODIFY_OPCODE (1)
|
#define RIP_NEXT_TO_THE_SELFMODIFY_OPCODE (1)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
#define OK(x) uc_assert_success(x)
|
#define OK(x) uc_assert_success(x)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "unicorn_test.h"
|
#include "unicorn_test.h"
|
||||||
#include "platform.h"
|
#include "unicorn/platform.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Two tests here for software paging
|
Two tests here for software paging
|
||||||
|
|
Loading…
Reference in New Issue