Revision c6ee607c hw/mips_r4k.c
b/hw/mips_r4k.c | ||
---|---|---|
15 | 15 |
#define BIOS_FILENAME "mipsel_bios.bin" |
16 | 16 |
#endif |
17 | 17 |
|
18 |
#ifdef TARGET_MIPS64 |
|
19 |
#define PHYS_TO_VIRT(x) ((x) | ~0x7fffffffULL) |
|
20 |
#else |
|
21 |
#define PHYS_TO_VIRT(x) ((x) | ~0x7fffffffU) |
|
22 |
#endif |
|
18 |
#define PHYS_TO_VIRT(x) ((x) | ~(target_ulong)0x7fffffff) |
|
23 | 19 |
|
24 | 20 |
#define VIRT_TO_PHYS_ADDEND (-((int64_t)(int32_t)0x80000000)) |
25 | 21 |
|
... | ... | |
152 | 148 |
CPUState *env; |
153 | 149 |
RTCState *rtc_state; |
154 | 150 |
int i; |
155 |
mips_def_t *def; |
|
156 | 151 |
qemu_irq *i8259; |
157 | 152 |
|
158 | 153 |
/* init CPUs */ |
Also available in: Unified diff