[kvm-unit-tests PATCH]] powerpc: display alignment exception in verbose mode only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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;
 
-- 
2.5.5

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux