Message ID | 1459350381-23387-1-git-send-email-lvivier@redhat.com |
---|---|
State | Accepted |
Headers | show |
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 <lvivier@redhat.com> > --- > 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; > Reviewed-by: Thomas Huth <thuth@redhat.com> -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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 <lvivier@redhat.com> > --- > 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 -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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;
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 <lvivier@redhat.com> --- powerpc/emulator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)