platform.h move #3

This commit is contained in:
xorstream 2017-01-21 00:13:21 +11:00
parent f4b375c651
commit fac6a66860
94 changed files with 125 additions and 127 deletions

View File

@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <sys/types.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>

View File

@ -22,7 +22,7 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -63,13 +63,13 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\include\list.h" />
<ClInclude Include="..\..\..\include\platform.h" />
<ClInclude Include="..\..\..\include\qemu.h" />
<ClInclude Include="..\..\..\include\uc_priv.h" />
<ClInclude Include="..\..\..\include\unicorn\arm.h" />
<ClInclude Include="..\..\..\include\unicorn\arm64.h" />
<ClInclude Include="..\..\..\include\unicorn\m68k.h" />
<ClInclude Include="..\..\..\include\unicorn\mips.h" />
<ClInclude Include="..\..\..\include\unicorn\platform.h" />
<ClInclude Include="..\..\..\include\unicorn\sparc.h" />
<ClInclude Include="..\..\..\include\unicorn\unicorn.h" />
<ClInclude Include="..\..\..\include\unicorn\x86.h" />

View File

@ -493,8 +493,6 @@
<ClInclude Include="..\..\..\include\unicorn\sparc.h" />
<ClInclude Include="..\..\..\include\unicorn\unicorn.h" />
<ClInclude Include="..\..\..\include\unicorn\x86.h" />
<ClInclude Include="..\..\..\include\platform.h">
<Filter>priv</Filter>
</ClInclude>
<ClInclude Include="..\..\..\include\unicorn\platform.h" />
</ItemGroup>
</Project>

View File

@ -1,7 +1,7 @@
#ifndef UC_LLIST_H
#define UC_LLIST_H
#include "platform.h"
#include "unicorn/platform.h"
struct list_item {
struct list_item *next;

View File

@ -4,7 +4,7 @@
#ifndef UC_PRIV_H
#define UC_PRIV_H
#include "platform.h"
#include "unicorn/platform.h"
#include <stdio.h>
#include "qemu.h"

View File

@ -8,7 +8,7 @@
extern "C" {
#endif
#include "platform.h"
#include "unicorn/platform.h"
#ifdef _MSC_VER
#pragma warning(disable:4201)

View File

@ -8,7 +8,7 @@
extern "C" {
#endif
#include "platform.h"
#include "unicorn/platform.h"
// GCC SPARC toolchain has a default macro called "sparc" which breaks
// compilation

View File

@ -12,7 +12,7 @@ extern "C" {
#pragma comment(lib, "unicorn.lib")
#endif
#include "platform.h"
#include "unicorn/platform.h"
#include <stdarg.h>
#if defined(UNICORN_HAS_OSXKERNEL)
#include <libkern/libkern.h>

View File

@ -8,7 +8,7 @@
extern "C" {
#endif
#include "platform.h"
#include "unicorn/platform.h"
// Memory-Management Register for instructions IDTR, GDTR, LDTR, TR.
// Borrow from SegmentCache in qemu/target-i386/cpu.h

2
list.c
View File

@ -1,5 +1,5 @@
#include <stdlib.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "list.h"
// simple linked list implementation

View File

@ -1,7 +1,7 @@
#ifndef _QEMU_ELF_H
#define _QEMU_ELF_H
#include "platform.h"
#include "unicorn/platform.h"
/* 32-bit ELF base types. */
typedef uint32_t Elf32_Addr;

View File

@ -24,7 +24,7 @@
#endif
#include "config.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "qemu/osdep.h"
#include "qemu/queue.h"
#ifndef CONFIG_USER_ONLY

View File

@ -7,7 +7,7 @@
/* hwaddr is the type of a physical address (its size can
be different from 'target_ulong'). */
#include "platform.h"
#include "unicorn/platform.h"
typedef uint64_t hwaddr;
#define HWADDR_MAX UINT64_MAX

View File

@ -19,7 +19,7 @@
#define DIRTY_MEMORY_CODE 0
#define DIRTY_MEMORY_NUM 1 /* num of dirty bits */
#include "platform.h"
#include "unicorn/platform.h"
#include "qemu-common.h"
#include "exec/cpu-common.h"
#ifndef CONFIG_USER_ONLY

View File

@ -42,7 +42,7 @@ these four paragraphs for those parts of this code that are retained.
#include <sunmath.h>
#endif
#include "platform.h"
#include "unicorn/platform.h"
#include "config-host.h"
#include "qemu/osdep.h"

View File

@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef __GLIB_COMPAT_H
#define __GLIB_COMPAT_H
#include "platform.h"
#include "unicorn/platform.h"
#include <stdarg.h>
#include <stdlib.h>
#include <assert.h>

View File

@ -14,7 +14,7 @@
#include "qemu/compiler.h"
#include "qapi-types.h"
#include "platform.h"
#include "unicorn/platform.h"
/**
* A class representing internal errors within QEMU. An error has a ErrorClass

View File

@ -14,7 +14,7 @@
#ifndef QBOOL_H
#define QBOOL_H
#include "platform.h"
#include "unicorn/platform.h"
#include "qapi/qmp/qobject.h"
typedef struct QBool {

View File

@ -16,7 +16,7 @@
#include "qapi/qmp/qobject.h"
#include "qapi/qmp/qlist.h"
#include "qemu/queue.h"
#include "platform.h"
#include "unicorn/platform.h"
#define QDICT_BUCKET_MAX 512

View File

@ -14,7 +14,7 @@
#ifndef QFLOAT_H
#define QFLOAT_H
#include "platform.h"
#include "unicorn/platform.h"
#include "qapi/qmp/qobject.h"
typedef struct QFloat {

View File

@ -13,7 +13,7 @@
#ifndef QINT_H
#define QINT_H
#include "platform.h"
#include "unicorn/platform.h"
#include "qapi/qmp/qobject.h"
typedef struct QInt {

View File

@ -13,7 +13,7 @@
#ifndef QSTRING_H
#define QSTRING_H
#include "platform.h"
#include "unicorn/platform.h"
#include "qapi/qmp/qobject.h"
typedef struct QString {

View File

@ -27,7 +27,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include <limits.h>
#include <time.h>

View File

@ -12,7 +12,7 @@
#ifndef BITOPS_H
#define BITOPS_H
#include "platform.h"
#include "unicorn/platform.h"
#include <assert.h>
#include "host-utils.h"

View File

@ -2,7 +2,7 @@
#define BSWAP_H
#include "config-host.h"
#include "platform.h"
#include "unicorn/platform.h"
#include <limits.h>
#include <string.h>
#include "fpu/softfloat.h"

View File

@ -2,7 +2,7 @@
#define INT128_H
//#include <assert.h>
#include "platform.h"
#include "unicorn/platform.h"
typedef struct Int128 Int128;

View File

@ -2,7 +2,7 @@
#define QEMU_LOG_H
#include <stdarg.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "qemu/compiler.h"
#include "qom/cpu.h"

View File

@ -4,7 +4,7 @@
#include "config-host.h"
#include <stdarg.h>
#include <stddef.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <sys/types.h>
#ifdef __OpenBSD__
#include <sys/signal.h>
@ -17,7 +17,7 @@
#define WEXITSTATUS(x) (x)
#endif
#include "platform.h"
#include "unicorn/platform.h"
#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
/* [u]int_fast*_t not in <sys/int_types.h> */

View File

@ -1,7 +1,7 @@
#ifndef QEMU_RANGE_H
#define QEMU_RANGE_H
#include "platform.h"
#include "unicorn/platform.h"
#include <qemu/typedefs.h>
#include "qemu/queue.h"

View File

@ -1,7 +1,7 @@
#ifndef __QEMU_THREAD_H
#define __QEMU_THREAD_H 1
#include "platform.h"
#include "unicorn/platform.h"
typedef struct QemuThread QemuThread;

View File

@ -15,7 +15,7 @@
#define QEMU_OBJECT_H
#include "glib_compat.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "qemu/queue.h"
#include "qapi/error.h"

View File

@ -21,7 +21,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>

View File

@ -20,7 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "cpu.h"
#include "tcg-op.h"

View File

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "cpu.h"
#include "internals.h"

View File

@ -19,7 +19,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "cpu.h"
#include "sysemu/cpus.h"

View File

@ -38,7 +38,7 @@
* CPUID Fn8000_0008_ECX[ApicIdCoreIdSize[3:0]] is set to apicid_core_width().
*/
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "qemu/bitops.h"

View File

@ -20,7 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <signal.h>
#include "qemu/host-utils.h"

View File

@ -21,7 +21,7 @@
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>

View File

@ -20,7 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <signal.h>
#include "cpu.h"

View File

@ -22,7 +22,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "cpu.h"
#include "exec/helper-proto.h"

View File

@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "platform.h"
#include "unicorn/platform.h"
#include "qemu/host-utils.h"
/* This file is compiled once, and thus we can't include the standard

View File

@ -29,7 +29,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "config.h"

View File

@ -24,7 +24,7 @@
*/
#include <stdlib.h>
#include "platform.h"
#include "unicorn/platform.h"
#include "qemu/host-utils.h"
#ifndef CONFIG_INT128

View File

@ -39,7 +39,7 @@
#endif
#define HUGETLBFS_MAGIC 0x958458f6
#include "platform.h"
#include "unicorn/platform.h"
#include "config-host.h"
#include "sysemu/sysemu.h"

View File

@ -15,7 +15,7 @@
#include <errno.h>
#include <time.h>
#include <signal.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include <limits.h>
#ifdef __linux__

View File

@ -38,8 +38,8 @@
// posix specific includes
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -1,4 +1,4 @@
#include "platform.h"
#include "unicorn/platform.h"
#include <stdio.h>
#include <string.h>
#include <unicorn/unicorn.h>

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -20,11 +20,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <unicorn/unicorn.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "platform.h"
#include "unicorn/platform.h"
#pragma pack(push, 1)
struct SegmentDescriptor {

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -1,8 +1,8 @@
#include <sys/types.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>

View File

@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <assert.h>
#include <unicorn/unicorn.h>

View File

@ -1,4 +1,4 @@
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>

View File

@ -1,8 +1,8 @@
#include <sys/types.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>

View File

@ -22,8 +22,8 @@ Test for uc_emu_stop() in code hook not always stopping the emu at the current i
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#include "pthread.h"
#endif // _MSC_VER

View File

@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>

View File

@ -1,4 +1,4 @@
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
static void hook_block(uc_engine *uc, uint64_t address, uint32_t size, void *user_data) {

View File

@ -1,5 +1,5 @@
#include <stdio.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
uint64_t starts[] = {0x10000000, 0x110004000ll};

View File

@ -1,7 +1,7 @@
#define __STDC_FORMAT_MACROS
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

View File

@ -19,9 +19,9 @@
*/
#define __STDC_FORMAT_MACROS
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

View File

@ -1,7 +1,7 @@
#define __STDC_FORMAT_MACROS
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

View File

@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>

View File

@ -19,9 +19,9 @@
*/
#define __STDC_FORMAT_MACROS
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

View File

@ -20,9 +20,9 @@
*/
#define __STDC_FORMAT_MACROS
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -21,8 +21,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -22,8 +22,8 @@
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#include "pthread.h"
#endif // _MSC_VER

View File

@ -27,8 +27,8 @@ but that the code hook is just not occurring.
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#endif // _MSC_VER

View File

@ -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 "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>

View File

@ -20,9 +20,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#define __STDC_FORMAT_MACROS
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

View File

@ -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 "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>

View File

@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#define ADDRESS 0x1000000

View File

@ -33,8 +33,8 @@ background.
// posix specific
#else // _MSC_VER
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#include "pthread.h"
#endif // _MSC_VER

View File

@ -9,7 +9,7 @@ call to uc_emu_start(). See issue #78 for more details:
https://github.com/unicorn-engine/unicorn/issues/78
*/
#include "platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>

View File

@ -1,9 +1,9 @@
#include <unicorn/unicorn.h>
#include "platform.h"
#include "unicorn/platform.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "platform.h"
#include "unicorn/platform.h"
/**
* Assert that err matches expect

View File

@ -5,7 +5,7 @@
#include "unicorn_test.h"
#include <stdio.h>
#include "platform.h"
#include "unicorn/platform.h"
uint64_t trunc_page(uint64_t addr)
{

View File

@ -4,7 +4,7 @@
// emulation by counts of instruction code
//
#include "unicorn_test.h"
#include "platform.h"
#include "unicorn/platform.h"
#define DEBUG 1

View File

@ -7,7 +7,7 @@
#include "unicorn_test.h"
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
/* Called before every test to set up a new instance */
static int setup(void **state)

View File

@ -1,5 +1,5 @@
#include "unicorn_test.h"
#include "platform.h"
#include "unicorn/platform.h"
#define OK(x) uc_assert_success(x)

View File

@ -1,6 +1,6 @@
// Test PC change during the callback. by Nguyen Anh Quynh, 2016
#include "unicorn_test.h"
#include "platform.h"
#include "unicorn/platform.h"
#define OK(x) uc_assert_success(x)

View File

@ -8,7 +8,7 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "platform.h"
#include "unicorn/platform.h"
#define RIP_NEXT_TO_THE_SELFMODIFY_OPCODE (1)

View File

@ -1,5 +1,5 @@
#include "unicorn_test.h"
#include "platform.h"
#include "unicorn/platform.h"
#define OK(x) uc_assert_success(x)

View File

@ -1,5 +1,5 @@
#include "platform.h"
#include "platform.h"
#include "unicorn/platform.h"
#include "unicorn/platform.h"
#include <unicorn/unicorn.h>
#include "unicorn_test.h"

View File

@ -1,4 +1,4 @@
#include "platform.h"
#include "unicorn/platform.h"
#include <string.h>
#include "unicorn_test.h"

View File

@ -1,5 +1,5 @@
#include "unicorn_test.h"
#include "platform.h"
#include "unicorn/platform.h"
/*
Two tests here for software paging