diff options
| author | Maciej W. Rozycki <macro@imgtec.com> | 2016-01-22 00:21:13 -0500 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2016-01-23 19:36:31 -0500 |
| commit | 6e1715f7c34d00dc94f3cecb2526ae3ff0b0649f (patch) | |
| tree | 1c142de11eb714b756762127569b1dc6359ef2b8 | |
| parent | 69a1e6cbdf1f40d5dcae84c5a538d390b6d2c307 (diff) | |
MIPS: math-emu: dsemul: Correct description of the emulation frame
Remove irrelevant content from the description of the emulation frame in
`mips_dsemul', referring to bare-metal configurations. Update the text,
reflecting the change made with commit ba3049ed4086 ("MIPS: Switch FPU
emulator trap to BREAK instruction."), where we switched from using an
address error exception on an unaligned access to the use of a BREAK 514
instruction causing a breakpoint exception instead.
Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12176/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| -rw-r--r-- | arch/mips/math-emu/dsemul.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/mips/math-emu/dsemul.c b/arch/mips/math-emu/dsemul.c index 77a623db3b38..bca7c4367ca4 100644 --- a/arch/mips/math-emu/dsemul.c +++ b/arch/mips/math-emu/dsemul.c | |||
| @@ -78,13 +78,8 @@ int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long cpc) | |||
| 78 | * Algorithmics used a system call instruction, and | 78 | * Algorithmics used a system call instruction, and |
| 79 | * borrowed that vector. MIPS/Linux version is a bit | 79 | * borrowed that vector. MIPS/Linux version is a bit |
| 80 | * more heavyweight in the interests of portability and | 80 | * more heavyweight in the interests of portability and |
| 81 | * multiprocessor support. For Linux we generate a | 81 | * multiprocessor support. For Linux we use a BREAK 514 |
| 82 | * an unaligned access and force an address error exception. | 82 | * instruction causing a breakpoint exception. |
| 83 | * | ||
| 84 | * For embedded systems (stand-alone) we prefer to use a | ||
| 85 | * non-existing CP1 instruction. This prevents us from emulating | ||
| 86 | * branches, but gives us a cleaner interface to the exception | ||
| 87 | * handler (single entry point). | ||
| 88 | */ | 83 | */ |
| 89 | break_math = BREAK_MATH(get_isa16_mode(regs->cp0_epc)); | 84 | break_math = BREAK_MATH(get_isa16_mode(regs->cp0_epc)); |
| 90 | 85 | ||
