Revision 379f6698 cpu-all.h
b/cpu-all.h | ||
---|---|---|
624 | 624 |
/* On some host systems the guest address space is reserved on the host. |
625 | 625 |
* This allows the guest address space to be offset to a convenient location. |
626 | 626 |
*/ |
627 |
//#define GUEST_BASE 0x20000000 |
|
628 |
#define GUEST_BASE 0 |
|
627 |
#if defined(CONFIG_USE_GUEST_BASE) |
|
628 |
extern unsigned long guest_base; |
|
629 |
extern int have_guest_base; |
|
630 |
#define GUEST_BASE guest_base |
|
631 |
#else |
|
632 |
#define GUEST_BASE 0ul |
|
633 |
#endif |
|
629 | 634 |
|
630 | 635 |
/* All direct uses of g2h and h2g need to go away for usermode softmmu. */ |
631 | 636 |
#define g2h(x) ((void *)((unsigned long)(x) + GUEST_BASE)) |
Also available in: Unified diff