Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
MIPS: mipsmtregs: Fix target register for MFTC0
Browse files Browse the repository at this point in the history
Target register of mftc0 should be __res instead of $1, this is
a leftover from old .insn code.

Fixes: dd6d29a ("MIPS: Implement microMIPS MT ASE helpers")
Cc: [email protected]
Signed-off-by: Jiaxun Yang <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
  • Loading branch information
FlyGoat authored and tsbogend committed Jun 21, 2024
1 parent 6e5aee0 commit 4a3e37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/mipsmtregs.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static inline void ehb(void)
" .set push \n" \
" .set "MIPS_ISA_LEVEL" \n" \
_ASM_SET_MFTC0 \
" mftc0 $1, " #rt ", " #sel " \n" \
" mftc0 %0, " #rt ", " #sel " \n" \
_ASM_UNSET_MFTC0 \
" .set pop \n" \
: "=r" (__res)); \
Expand Down

0 comments on commit 4a3e37b

Please sign in to comment.