[Top][All Lists]

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

[Qemu-commits] [qemu/qemu] bd517b: disas/microblaze: Remove unused REG_P

From: GitHub
Subject: [Qemu-commits] [qemu/qemu] bd517b: disas/microblaze: Remove unused REG_PC define
Date: Fri, 24 Mar 2017 04:30:13 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: bd517b4337dd9322b28945b72ae726f9cd269940
  Author: Peter Maydell <address@hidden>
  Date:   2017-03-24 (Fri, 24 Mar 2017)

  Changed paths:
    M disas/microblaze.c

  Log Message:
  disas/microblaze: Remove unused REG_PC define

The REG_PC define in disas/microblaze.c clashes with a define in
the Linux SPARC system headers:

/home/pm215/qemu/disas/microblaze.c:162:0: error: "REG_PC" redefined [-Werror]
 #define REG_PC  32 /* PC */

In file included from /usr/include/signal.h:326:0,
           from /home/pm215/qemu/include/qemu/osdep.h:86,
           from /home/pm215/qemu/disas/microblaze.c:36:
/usr/include/sparc64-linux-gnu/sys/ucontext.h:96:0: note: this is the location 
of the previous definition
 #define REG_PC  (1)

Since the code doesn't actually use the REG_PC define
anywhere, the simplest fix is just to remove it.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
Message-id: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]