NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

structure fxsave* / fxsave64 changed from 102x to 11.0?



On 10.2 amd64, compilng ArcticFox i dev branch s fine.

However, on 11.0 I get this error:

167:52.84 /home/multix/code/Arctic-Fox/js/src/wasm/WasmSignalHandlers.cpp:166:25: error: invalid cast from type '__fpregset_t' to type 'fxsave*' 167:52.84   166 | # define XMM_sig(p,i) (((struct fxsave64*)(p)->uc_mcontext.__fpregs)->fx_xmm[i])
167:52.84       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167:52.84 /home/multix/code/Arctic-Fox/js/src/wasm/WasmSignalHandlers.cpp:501:40: note: in expansion of macro 'XMM_sig' 167:52.84   501 |       case X86Encoding::xmm0:  return &XMM_sig(context, 0);
167:52.84       |                                        ^~~~~~~
167:52.84 /home/multix/code/Arctic-Fox/js/src/wasm/WasmSignalHandlers.cpp:166:25: error: invalid cast from type '__fpregset_t' to type 'fxsave*' 167:52.84   166 | # define XMM_sig(p,i) (((struct fxsave64*)(p)->uc_mcontext.__fpregs)->fx_xmm[i])
167:52.84       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167:52.84 /home/multix/code/Arctic-Fox/js/src/wasm/WasmSignalHandlers.cpp:502:40: note: in expansion of macro 'XMM_sig' 167:52.84   502 |       case X86Encoding::xmm1:  return &XMM_sig(context, 1);

Now... the code is a little bit old, since it is from older Firefox. But also I am testing on NetBSD 11.

Does this rign a bell do somebody, things that changed from 10.x to 11.x?

I wonder if something changed in the kernel headers that made the code incompatible? It comes from machine/fpu.h

Interestingly, if I open fpu.h, I find this comment:

/*
 * This file is only present for backwards compatibility with
 * a few user programs, particularly firefox.
 */


Riccardo


Home | Main Index | Thread Index | Old Index