[Bug 237208] java/openjdk11: port to powerpc64

[email protected]
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237208

--- Comment #9 from Gustavo Romero <[email protected]> ---
(In reply to Piotr Kubaj from comment #4)

Hi Piotr and Mikael,

Is the SIGILL JVM crash still happening?

Piotr, the illegal instruction executed in the arraycopy stubs looks to be a
'mtdscr', i.e. an instruction used to adjust the depth of the data prefetch
prior to the bulk copy.

However I can't make sense of that yet because availability of m{t,f}dscr is
proved at runtime before the emission by the compiler.

Logs show that m{t,f}dscr is not available indeed: 

CPU:total 16 (initial active 16) ppc64 fsqrt isel lxarxeh cmpb popcntb popcntw
fcfids vand lqarx aes vpmsumb mfdscr vsx ldbrx stdbrx sha darn

That JVM on POWER9 reports it has VSX and DARN support but not DSCR? The
instruction that caused the crash in question is also using DSCR SPR number 3,
which is not privileged either.

Does:

int main()
{
 asm("mtspr 3, 0;");
}


crashes with a SIGILL?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.