Skip to content

Commit a3dcec3

Browse files
committed
src: arch: mips: Remove unnecessary opcode in rel API
1 parent e44d3e0 commit a3dcec3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

shellblocks/src/arch/mips/utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"nop\n\t" \
1010
"bal " GET_REL_LABEL(LABEL) "\n\t" \
1111
"nop\n\t" \
12-
GET_REL_LABEL(LABEL) ": move $v0, $ra\n\t" \
13-
"move %0, $v0\n\t" \
12+
GET_REL_LABEL(LABEL) ": move %0, $ra\n\t" \
1413
"addiu %0, (" #LABEL " - " GET_REL_LABEL(LABEL) ")\n\t" \
1514
: "=r" (OUTPUT) : : "$ra" \
1615
)

0 commit comments

Comments
 (0)