Revision 9de5e440 linux-user/qemu.h

b/linux-user/qemu.h
3 3

  
4 4
#include "thunk.h"
5 5

  
6
#ifdef TARGET_I386
7

  
8
/* default linux values for the selectors */
9
#define __USER_CS	(0x23)
10
#define __USER_DS	(0x2B)
11

  
12
struct target_pt_regs {
13
	long ebx;
14
	long ecx;
15
	long edx;
16
	long esi;
17
	long edi;
18
	long ebp;
19
	long eax;
20
	int  xds;
21
	int  xes;
22
	long orig_eax;
23
	long eip;
24
	int  xcs;
25
	long eflags;
26
	long esp;
27
	int  xss;
28
};
6
#include <signal.h>
7
#include "syscall_defs.h"
29 8

  
9
#ifdef TARGET_I386
10
#include "cpu-i386.h"
11
#include "syscall-i386.h"
30 12
#endif
31 13

  
32 14
/* This struct is used to hold certain information about the image.
......
59 41
long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, 
60 42
                long arg4, long arg5, long arg6);
61 43
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
62
struct CPUX86State;
63
void cpu_loop(struct CPUX86State *env);
44
extern CPUX86State *global_env;
45
void cpu_loop(CPUX86State *env);
64 46
void process_pending_signals(void *cpu_env);
65 47
void signal_init(void);
48
int queue_signal(int sig, target_siginfo_t *info);
66 49

  
67 50
#endif

Also available in: Unified diff