android_kernel_xiaomi_sm8350/arch/sparc64
Joseph Myers 726c12f57d sparc64: Fix VIS emulation bugs
This patch fixes some bugs in VIS emulation that cause the GCC test
failure

FAIL: gcc.target/sparc/pdist-3.c execution test

for both 32-bit and 64-bit testing on hardware lacking these
instructions.  The emulation code for the pdist instruction uses
RS1(insn) for both source registers rs1 and rs2, which is obviously
wrong and leads to the instruction doing nothing (the observed
problem), and further inspection of the code shows that RS1 uses a
shift of 24 and RD a shift of 25, which clearly cannot both be right;
examining SPARC documentation indicates the correct shift for RS1 is
14.

This patch fixes the bug if single-stepping over the affected
instruction in the debugger, but not if the testcase is run
standalone.  For that, Wind River has another patch I hope they will
send as a followup to this patch submission.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-12-03 19:36:05 -08:00
..
boot sparc64: remove CVS keywords 2008-05-20 00:33:43 -07:00
kernel sparc64: Fix VIS emulation bugs 2008-12-03 19:36:05 -08:00
lib sparc64: Fix offset calculation in compute_size() 2008-12-01 02:48:26 -08:00
math-emu sparc64: remove CVS keywords 2008-05-20 00:33:43 -07:00
mm sparc64 trivial section misannotations 2008-11-30 10:03:35 -08:00
oprofile oprofile: more whitespace fixes 2008-10-15 20:55:51 +02:00
prom sparc64: remove CVS keywords 2008-05-20 00:33:43 -07:00
defconfig sparc64: Update defconfig. 2008-11-10 12:35:29 -08:00
Kconfig ftrace: disable dynamic ftrace for all archs that use daemon 2008-10-23 16:00:21 +02:00
Kconfig.debug ftrace: rename FTRACE to FUNCTION_TRACER 2008-10-20 18:27:03 +02:00
Makefile sparc64: Add __arch64__ to CHECKFLAGS 2008-09-11 23:14:52 -07:00