]> git.proxmox.com Git - mirror_qemu.git/commitdiff
disas/microblaze: Remove unused REG_PC define
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Mar 2017 12:42:41 +0000 (12:42 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Mar 2017 10:12:23 +0000 (10:12 +0000)
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 <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 1490272961-1128-1-git-send-email-peter.maydell@linaro.org

disas/microblaze.c

index 407c0a3ffa5f831fd51325a87e031d59c936bfd8..7795a0bdb99863006c33c6e88cc219ff7a49bf69 100644 (file)
@@ -159,7 +159,7 @@ enum microblaze_instr_type {
 #define MIN_PVR_REGNUM 0
 #define MAX_PVR_REGNUM 15
 
-#define REG_PC  32 /* PC */
+/* 32 is REG_PC */
 #define REG_MSR 33 /* machine status reg */
 #define REG_EAR 35 /* Exception reg */
 #define REG_ESR 37 /* Exception reg */