[IA64] compilation fix of xenctx
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 7 Jan 2009 03:20:31 +0000 (12:20 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 7 Jan 2009 03:20:31 +0000 (12:20 +0900)
This patch fixes the following compilation error caused by
18963:9cc632cc6d40 of xen-unstable.hg

> xenctx.c: In function 'print_ctx':
> xenctx.c:430: error: request for member 'c' in something not a structure or union
> xenctx.c:431: error: 'vcpu_guest_context_any_t' has no member named 'regs'
> xenctx.c:484: error: 'vcpu_guest_context_any_t' has no member named 'event_callback_ip'

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
tools/xentrace/xenctx.c

index bf3aede2812f9165beb4b25449dd31a1fff76b35..ec0142741349d6c57acfab508c77bd06f44fa971 100644 (file)
@@ -427,8 +427,8 @@ static void print_tr(int i, const struct ia64_tr_entry *tr)
 
 void print_ctx(vcpu_guest_context_any_t *ctx)
 {
-    struct vcpu_guest_context_regs *regs = &ctx.c->regs;
-    struct vcpu_tr_regs *tr = &ctx->regs.tr;
+    struct vcpu_guest_context_regs *regs = &ctx->c.regs;
+    struct vcpu_tr_regs *tr = &ctx->c.regs.tr;
     int i;
     unsigned int rbs_size, cfm_sof;
 
@@ -481,7 +481,7 @@ void print_ctx(vcpu_guest_context_any_t *ctx)
         printf(" cmcv: %016lx\n", regs->cr.cmcv);
         printf(" lrr0: %016lx  ", regs->cr.lrr0);
         printf(" lrr1: %016lx  ", regs->cr.lrr1);
-        printf(" ev_cb:%016lx\n", ctx->event_callback_ip);
+        printf(" ev_cb:%016lx\n", ctx->c.event_callback_ip);
 
     }
     if (disp_ar_regs) {