remove unneeded nop the gcc-as add this self
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 11 Jul 2006 18:15:22 +0000 (18:15 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 11 Jul 2006 18:15:22 +0000 (18:15 +0000)
lib/base/object.h

index ed7dda8..68507a2 100644 (file)
@@ -57,7 +57,6 @@ public:
                                "               sc              %0, %1  # try to store, checking for atomicity  \n" \
                                "               .set    mips0                                                                                   \n" \
                                "               beqz    %0, 1b  # if not atomic (0), try again                  \n" \
-                               "               nop                             # branch-delay slot                                             \n" \
                                : "=&r" (temp), "=m" ((int)ref) \
                                : "m" ((int)ref) \
                                : "memory"); \
@@ -74,7 +73,6 @@ public:
                                "               sc              %0, %1                          \n" \
                                "               .set    mips0                           \n" \
                                "               beqz    %0, 1b                          \n" \
-                               "               nop                                                     \n" \
                                : "=&r" (temp), "=m" ((int)ref) \
                                : "m" ((int)ref) \
                                : "memory"); \