Revision 355b1943 tcg/ppc/tcg-target.c
b/tcg/ppc/tcg-target.c | ||
---|---|---|
37 | 37 |
|
38 | 38 |
#define FAST_PATH |
39 | 39 |
|
40 |
#ifdef CONFIG_SOFTMMU |
|
41 |
#if TARGET_PHYS_ADDR_BITS <= 32 |
|
42 |
#define ADDEND_OFFSET 0 |
|
43 |
#else |
|
44 |
#define ADDEND_OFFSET 4 |
|
45 |
#endif |
|
46 |
#endif |
|
47 |
|
|
48 | 40 |
#ifndef GUEST_BASE |
49 | 41 |
#define GUEST_BASE 0 |
50 | 42 |
#endif |
... | ... | |
648 | 640 |
tcg_out32 (s, (LWZ |
649 | 641 |
| RT (r0) |
650 | 642 |
| RA (r0) |
651 |
| (ADDEND_OFFSET + offsetof (CPUTLBEntry, addend)
|
|
643 |
| (offsetof (CPUTLBEntry, addend) |
|
652 | 644 |
- offsetof (CPUTLBEntry, addr_read)) |
653 | 645 |
)); |
654 | 646 |
/* r0 = env->tlb_table[mem_index][index].addend */ |
... | ... | |
847 | 839 |
tcg_out32 (s, (LWZ |
848 | 840 |
| RT (r0) |
849 | 841 |
| RA (r0) |
850 |
| (ADDEND_OFFSET + offsetof (CPUTLBEntry, addend)
|
|
842 |
| (offsetof (CPUTLBEntry, addend) |
|
851 | 843 |
- offsetof (CPUTLBEntry, addr_write)) |
852 | 844 |
)); |
853 | 845 |
/* r0 = env->tlb_table[mem_index][index].addend */ |
Also available in: Unified diff