ia64/xen-unstable

changeset 18997:e1b8cc945d04

[IA64] compilation fix of xenctx

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>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Jan 07 12:20:31 2009 +0900 (2009-01-07)
parents 661a839a481e
children 7152abcd560d
files tools/xentrace/xenctx.c
line diff
     1.1 --- a/tools/xentrace/xenctx.c	Wed Jan 07 12:20:18 2009 +0900
     1.2 +++ b/tools/xentrace/xenctx.c	Wed Jan 07 12:20:31 2009 +0900
     1.3 @@ -427,8 +427,8 @@ static void print_tr(int i, const struct
     1.4  
     1.5  void print_ctx(vcpu_guest_context_any_t *ctx)
     1.6  {
     1.7 -    struct vcpu_guest_context_regs *regs = &ctx.c->regs;
     1.8 -    struct vcpu_tr_regs *tr = &ctx->regs.tr;
     1.9 +    struct vcpu_guest_context_regs *regs = &ctx->c.regs;
    1.10 +    struct vcpu_tr_regs *tr = &ctx->c.regs.tr;
    1.11      int i;
    1.12      unsigned int rbs_size, cfm_sof;
    1.13  
    1.14 @@ -481,7 +481,7 @@ void print_ctx(vcpu_guest_context_any_t 
    1.15          printf(" cmcv: %016lx\n", regs->cr.cmcv);
    1.16          printf(" lrr0: %016lx  ", regs->cr.lrr0);
    1.17          printf(" lrr1: %016lx  ", regs->cr.lrr1);
    1.18 -        printf(" ev_cb:%016lx\n", ctx->event_callback_ip);
    1.19 +        printf(" ev_cb:%016lx\n", ctx->c.event_callback_ip);
    1.20  
    1.21      }
    1.22      if (disp_ar_regs) {