Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: microMIPS: Fix detection of addiusp instruction
The addiusp instruction uses the pool16d opcode, with bit 0 of the immediate set. The test for the addiusp opcode erroneously did a logical and of the immediate with mm_addiusp_func, which has value 1, so this test always passes when the immediate is non-zero. Fix the test by replacing the logical and with a bitwise and. Fixes: 34c2f66 ("MIPS: microMIPS: Add unaligned access support.") Signed-off-by: Matt Redfearn <[email protected]> Cc: Marcin Nowakowski <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Burton <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/16954/ Signed-off-by: Ralf Baechle <[email protected]>
- Loading branch information