|
From: <sv...@va...> - 2015-04-16 16:25:38
|
Author: carll
Date: Thu Apr 16 17:25:29 2015
New Revision: 15101
Log:
Fix the compiler warning about casting the arguments to the functions
LibVEX_GuestPPC64_get_CR() and LibVEX_GuestPPC64_get_XER().
The bugzilla for this issue is 346267.
Modified:
trunk/coregrind/m_coredump/coredump-elf.c
Modified: trunk/coregrind/m_coredump/coredump-elf.c
==============================================================================
--- trunk/coregrind/m_coredump/coredump-elf.c (original)
+++ trunk/coregrind/m_coredump/coredump-elf.c Thu Apr 16 17:25:29 2015
@@ -358,8 +358,8 @@
regs->orig_gpr3 = arch->vex.guest_GPR3;
regs->ctr = arch->vex.guest_CTR;
regs->link = arch->vex.guest_LR;
- regs->xer = LibVEX_GuestPPC64_get_XER( &((ThreadArchState*)arch)->vex );
- regs->ccr = LibVEX_GuestPPC64_get_CR( &((ThreadArchState*)arch)->vex );
+ regs->xer = LibVEX_GuestPPC64_get_XER( (const VexGuestPPC64State*) &(arch->vex) );
+ regs->ccr = LibVEX_GuestPPC64_get_CR( (const VexGuestPPC64State*) &(arch->vex) );
/* regs->mq = 0; */
regs->trap = 0;
regs->dar = 0; /* should be fault address? */
|