diff options
author | Matt Redfearn <[email protected]> | 2017-08-08 13:22:35 +0100 |
---|---|---|
committer | Ralf Baechle <[email protected]> | 2017-09-06 13:21:44 +0200 |
commit | 56dfb7001a396ef6c7928adcb890043ff55e9977 (patch) | |
tree | b7923c132b608758722c140a8538bd254baad778 /drivers/fpga/xilinx-spi.c | |
parent | 41885b02127c7ae169dc94542de4a8eed175495a (diff) |
MIPS: Refactor handling of stack pointer in get_frame_info
Commit 34c2f668d0f6 ("MIPS: microMIPS: Add unaligned access support.")
added handling of microMIPS instructions to manipulate the stack
pointer. The code that was added violates code style rules with long
lines caused by lots of nested conditionals.
The added code interprets (inline) any known stack pointer manipulation
instruction to find the stack frame size. Handling the microMIPS cases
added quite a bit of complication to this function.
Refactor is_sp_move_ins to perform the interpretation of the immediate
as the instruction manipulating the stack pointer is found. This reduces
the amount of indentation required in get_frame_info, and more closely
matches the operation of is_ra_save_ins.
Suggested-by: Maciej W. Rozycki <[email protected]>
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/16958/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions