Commit 75d0187a52af2afd92c6c7f34e3f089733946766
1 parent
bd0c5661
Remove unused (for now) reg_REGWPTR (original patch by Glauber Costa)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4617 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
0 additions
and
19 deletions
cpu-exec.c
... | ... | @@ -246,11 +246,6 @@ int cpu_exec(CPUState *env1) |
246 | 246 | { |
247 | 247 | #define DECLARE_HOST_REGS 1 |
248 | 248 | #include "hostregs_helper.h" |
249 | -#if defined(TARGET_SPARC) | |
250 | -#if defined(reg_REGWPTR) | |
251 | - uint32_t *saved_regwptr; | |
252 | -#endif | |
253 | -#endif | |
254 | 249 | int ret, interrupt_request; |
255 | 250 | TranslationBlock *tb; |
256 | 251 | uint8_t *tc_ptr; |
... | ... | @@ -273,9 +268,6 @@ int cpu_exec(CPUState *env1) |
273 | 268 | CC_OP = CC_OP_EFLAGS; |
274 | 269 | env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); |
275 | 270 | #elif defined(TARGET_SPARC) |
276 | -#if defined(reg_REGWPTR) | |
277 | - saved_regwptr = REGWPTR; | |
278 | -#endif | |
279 | 271 | #elif defined(TARGET_M68K) |
280 | 272 | env->cc_op = CC_OP_FLAGS; |
281 | 273 | env->cc_dest = env->sr & 0xf; |
... | ... | @@ -562,8 +554,6 @@ int cpu_exec(CPUState *env1) |
562 | 554 | #elif defined(TARGET_ARM) |
563 | 555 | cpu_dump_state(env, logfile, fprintf, 0); |
564 | 556 | #elif defined(TARGET_SPARC) |
565 | - REGWPTR = env->regbase + (env->cwp * 16); | |
566 | - env->regwptr = REGWPTR; | |
567 | 557 | cpu_dump_state(env, logfile, fprintf, 0); |
568 | 558 | #elif defined(TARGET_PPC) |
569 | 559 | cpu_dump_state(env, logfile, fprintf, 0); |
... | ... | @@ -640,9 +630,6 @@ int cpu_exec(CPUState *env1) |
640 | 630 | #elif defined(TARGET_ARM) |
641 | 631 | /* XXX: Save/restore host fpu exception state?. */ |
642 | 632 | #elif defined(TARGET_SPARC) |
643 | -#if defined(reg_REGWPTR) | |
644 | - REGWPTR = saved_regwptr; | |
645 | -#endif | |
646 | 633 | #elif defined(TARGET_PPC) |
647 | 634 | #elif defined(TARGET_M68K) |
648 | 635 | cpu_m68k_flush_flags(env, env->cc_op); | ... | ... |
target-sparc/exec.h
... | ... | @@ -4,7 +4,6 @@ |
4 | 4 | #include "dyngen-exec.h" |
5 | 5 | |
6 | 6 | register struct CPUSPARCState *env asm(AREG0); |
7 | -#define REGWPTR env->regwptr | |
8 | 7 | |
9 | 8 | #define FT0 (env->ft0) |
10 | 9 | #define FT1 (env->ft1) |
... | ... | @@ -18,10 +17,6 @@ register struct CPUSPARCState *env asm(AREG0); |
18 | 17 | |
19 | 18 | static inline void env_to_regs(void) |
20 | 19 | { |
21 | -#if defined(reg_REGWPTR) | |
22 | - REGWPTR = env->regbase + (env->cwp * 16); | |
23 | - env->regwptr = REGWPTR; | |
24 | -#endif | |
25 | 20 | } |
26 | 21 | |
27 | 22 | static inline void regs_to_env(void) | ... | ... |
target-sparc/op_helper.c
... | ... | @@ -2629,7 +2629,6 @@ void cpu_set_cwp(CPUState *env1, int new_cwp) |
2629 | 2629 | if (new_cwp == (NWINDOWS - 1)) |
2630 | 2630 | memcpy32(env1->regbase + NWINDOWS * 16, env1->regbase); |
2631 | 2631 | env1->regwptr = env1->regbase + (new_cwp * 16); |
2632 | - REGWPTR = env1->regwptr; | |
2633 | 2632 | } |
2634 | 2633 | |
2635 | 2634 | void set_cwp(int new_cwp) | ... | ... |