From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Date: Wed, 30 Mar 2016 16:12:17 +0000 Subject: Re: [kvm-unit-tests PATCH]] powerpc: display alignment exception in verbose mode only Message-Id: <56FBFAE1.2040402@redhat.com> List-Id: References: <1459350381-23387-1-git-send-email-lvivier@redhat.com> In-Reply-To: <1459350381-23387-1-git-send-email-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Laurent Vivier , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Cc: drjones@redhat.com, thuth@redhat.com, dgibson@redhat.com On 30/03/2016 17:06, Laurent Vivier wrote: > In the emulator test, the illegal exception is displayed > only in verbose mode, do the same thing for the alignment > exception. > > Signed-off-by: Laurent Vivier > --- > powerpc/emulator.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/powerpc/emulator.c b/powerpc/emulator.c > index ef27f15..3696d83 100644 > --- a/powerpc/emulator.c > +++ b/powerpc/emulator.c > @@ -35,8 +35,10 @@ static void alignment_handler(struct pt_regs *regs, void *opaque) > { > int *data = opaque; > > - printf("Detected alignment exception 0x%016lx: %08x\n", > - regs->nip, *(uint32_t*)regs->nip); > + if (verbose) { > + printf("Detected alignment exception 0x%016lx: %08x\n", > + regs->nip, *(uint32_t*)regs->nip); > + } > > *data = 1; > > Thanks, applying soon. Paolo