Patchwork [3/7] tcg-ia64: Provide default GUEST_BASE.

login
register
mail settings
Submitter Richard Henderson
Date Nov. 22, 2010, 10:57 p.m.
Message ID <1290466678-6337-4-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/72616/
State New
Headers show

Comments

Richard Henderson - Nov. 22, 2010, 10:57 p.m.
Fix compilation error when GUEST_BASE is not defined.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/ia64/tcg-target.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/tcg/ia64/tcg-target.c b/tcg/ia64/tcg-target.c
index a0f3877..80c6950 100644
--- a/tcg/ia64/tcg-target.c
+++ b/tcg/ia64/tcg-target.c
@@ -45,6 +45,9 @@  static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
 #else
 #define TCG_GUEST_BASE_REG TCG_REG_R0
 #endif
+#ifndef GUEST_BASE
+#define GUEST_BASE 0
+#endif
 
 /* Branch registers */
 enum {