]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
disas/microblaze: Remove unused REG_SP macro
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 30 Nov 2018 00:49:54 +0000 (16:49 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 25 Dec 2018 19:40:02 +0000 (06:40 +1100)
This causes a build error with debian sid, riscv64 host:

disas/microblaze.c:179: error: "REG_SP" redefined [-Werror]
 #define REG_SP  1 /* stack pointer */

In file included from /usr/include/signal.h:306,
                 from include/qemu/osdep.h:101,
                 from disas/microblaze.c:36:
/usr/include/riscv64-linux-gnu/sys/ucontext.h:36: note: this is the location of the previous definition
 # define REG_SP 2

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
disas/microblaze.c

index 598ecbc89dc6bd1e9b4ce7c6d5151b38fe418f62..c23605043a7a2e4d04ddada63407cfdde1352c82 100644 (file)
@@ -176,7 +176,6 @@ enum microblaze_instr_type {
 #define REG_TLBSX 36869 /* MMU: TLB Search Index reg */
 
 /* alternate names for gen purpose regs */
-#define REG_SP  1 /* stack pointer */
 #define REG_ROSDP 2 /* read-only small data pointer */
 #define REG_RWSDP 13 /* read-write small data pointer */