Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Emulation of unaligned LDXC1/SDXC1 instructions
@ 2016-04-21 10:19 Aurelien Jarno
  2016-04-21 11:25 ` [PATCH] MIPS: Allow emulation for unaligned [LS]DXC1 instructions Paul Burton
  0 siblings, 1 reply; 4+ messages in thread
From: Aurelien Jarno @ 2016-04-21 10:19 UTC (permalink / raw)
  To: linux-mips

Hi all,

Debian recently got access to Cavium III machines which have an FPU,
before we were using Cavium II machines with the kernel FPU emulation.

It appears some code (at least openjdk and lcms2, probably more) use the
LDXC1 and SDXC1 instructions with word aligned addresses instead of
double-word aligned addresses as required by the specification. This
causes a SIGILL. The kernel emulation is more relaxed and allow word
aligned addresses.

First of all I am surprised to get a SIGILL in that case instead of a
SIGBUS, and secondly I think the behavior with and without FPU should be
consistent. The kernel currently emulates unaligned LDC1 and SDC1
instructions even with an FPU, so I wonder if the kernel should also
emulate unaligned LDXC1 and SDXC1 instructions.

Any opinion?

Thanks,
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-21 14:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 10:19 Emulation of unaligned LDXC1/SDXC1 instructions Aurelien Jarno
2016-04-21 11:25 ` [PATCH] MIPS: Allow emulation for unaligned [LS]DXC1 instructions Paul Burton
2016-04-21 11:25   ` Paul Burton
2016-04-21 14:59   ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox