Commit edea5f0193b200f15a0f852c0c3ca64bf8432da4
1 parent
7c60cc4b
no need to define global registers in cpu-exec.c
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4409 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
41 deletions
target-i386/exec.h
... | ... | @@ -32,6 +32,8 @@ |
32 | 32 | /* at least 4 register variables are defined */ |
33 | 33 | register struct CPUX86State *env asm(AREG0); |
34 | 34 | |
35 | +#ifndef CPU_NO_GLOBAL_REGS | |
36 | + | |
35 | 37 | #if TARGET_LONG_BITS > HOST_LONG_BITS |
36 | 38 | |
37 | 39 | /* no registers can be used */ |
... | ... | @@ -47,49 +49,10 @@ register target_ulong T0 asm(AREG1); |
47 | 49 | register target_ulong T1 asm(AREG2); |
48 | 50 | register target_ulong T2 asm(AREG3); |
49 | 51 | |
50 | -/* if more registers are available, we define some registers too */ | |
51 | -#ifdef AREG4 | |
52 | -register target_ulong EAX asm(AREG4); | |
53 | -#define reg_EAX | |
54 | -#endif | |
55 | - | |
56 | -#ifdef AREG5 | |
57 | -register target_ulong ESP asm(AREG5); | |
58 | -#define reg_ESP | |
59 | -#endif | |
60 | - | |
61 | -#ifdef AREG6 | |
62 | -register target_ulong EBP asm(AREG6); | |
63 | -#define reg_EBP | |
64 | -#endif | |
65 | - | |
66 | -#ifdef AREG7 | |
67 | -register target_ulong ECX asm(AREG7); | |
68 | -#define reg_ECX | |
69 | -#endif | |
70 | - | |
71 | -#ifdef AREG8 | |
72 | -register target_ulong EDX asm(AREG8); | |
73 | -#define reg_EDX | |
74 | -#endif | |
75 | - | |
76 | -#ifdef AREG9 | |
77 | -register target_ulong EBX asm(AREG9); | |
78 | -#define reg_EBX | |
79 | -#endif | |
80 | - | |
81 | -#ifdef AREG10 | |
82 | -register target_ulong ESI asm(AREG10); | |
83 | -#define reg_ESI | |
84 | -#endif | |
85 | - | |
86 | -#ifdef AREG11 | |
87 | -register target_ulong EDI asm(AREG11); | |
88 | -#define reg_EDI | |
89 | -#endif | |
90 | - | |
91 | 52 | #endif /* ! (TARGET_LONG_BITS > HOST_LONG_BITS) */ |
92 | 53 | |
54 | +#endif /* ! CPU_NO_GLOBAL_REGS */ | |
55 | + | |
93 | 56 | #define A0 T2 |
94 | 57 | |
95 | 58 | extern FILE *logfile; | ... | ... |