Re:Intel SA-00145: Lazy FP State Restore
by monocasa on Wednesday June 13, 2018 @07:00PM
(#17307751)
Lazy context switching is a thing on pretty much every architecture with an FPU.
[ Parent
| on HN ]
Re:Intel SA-00145: Lazy FP State Restore
by cperciva on Wednesday June 13, 2018 @07:37PM
(#17307964)
Hmm, I thought most RISCy CPUs kept FP values in GP registers?
Re:Intel SA-00145: Lazy FP State Restore
by monocasa on Wednesday June 13, 2018 @08:15PM
(#17308182)
No, I can't think of an arch that does that. Power, SH, Mips, Sparc, Alpha, ARM, and RISC-V all have separate architectural register files for the floating point state.
Some ARM ABIs end up passing floats in integer registers, but that's just for compatibility for code that doesn't assume the presence of an FPU and might be doing everything soft float.
Re:Intel SA-00145: Lazy FP State Restore
by cperciva on Wednesday June 13, 2018 @08:17PM
(#17308192)
Hmm, ok. It's a long time since I've looked at that. Come to think of it, I think it might be 20 years since I opened CA:QA...
Yeah I’d say that modern OoO Arm implementations (A57, A72, ...) are worth trying to speculate into trapped VFP state. Lazy FPU is definitly a thing everywhere.
My hunch says that chips affected by 4a could easily be fair game (4a is speculating reads into priviledged regs... I wonder if 4a would work on regs that are trapped, not inconceivable)