qemu.h (66fb9763af9cd743158957e8c9c2559d922b1c22) qemu.h (9de5e440b9f6a6c6305c0b81d1df4ddcc5a4b966)
1#ifndef GEMU_H
2#define GEMU_H
3
4#include "thunk.h"
5
1#ifndef GEMU_H
2#define GEMU_H
3
4#include "thunk.h"
5
6#ifdef TARGET_I386
6#include <signal.h>
7#include "syscall_defs.h"
7
8
8/* default linux values for the selectors */
9#define __USER_CS (0x23)
10#define __USER_DS (0x2B)
11
12struct 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};
29
9#ifdef TARGET_I386
10#include "cpu-i386.h"
11#include "syscall-i386.h"
30#endif
31
32/* This struct is used to hold certain information about the image.
33 * Basically, it replicates in user space what would be certain
34 * task_struct fields in the kernel
35 */
36struct image_info {
37 unsigned long start_code;

--- 16 unchanged lines hidden (view full) ---

54int elf_exec(const char * filename, char ** argv, char ** envp,
55 struct target_pt_regs * regs, struct image_info *infop);
56
57void target_set_brk(char *new_brk);
58void syscall_init(void);
59long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
60 long arg4, long arg5, long arg6);
61void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
12#endif
13
14/* This struct is used to hold certain information about the image.
15 * Basically, it replicates in user space what would be certain
16 * task_struct fields in the kernel
17 */
18struct image_info {
19 unsigned long start_code;

--- 16 unchanged lines hidden (view full) ---

36int elf_exec(const char * filename, char ** argv, char ** envp,
37 struct target_pt_regs * regs, struct image_info *infop);
38
39void target_set_brk(char *new_brk);
40void syscall_init(void);
41long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
42 long arg4, long arg5, long arg6);
43void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
62struct CPUX86State;
63void cpu_loop(struct CPUX86State *env);
44extern CPUX86State *global_env;
45void cpu_loop(CPUX86State *env);
64void process_pending_signals(void *cpu_env);
65void signal_init(void);
46void process_pending_signals(void *cpu_env);
47void signal_init(void);
48int queue_signal(int sig, target_siginfo_t *info);
66
67#endif
49
50#endif