[Lldb-commits] [PATCH] D41245: Reduce x86 register context boilerplate.

Kamil Rytarowski via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 14 10:29:33 PST 2017

krytarowski added a comment.

I want to support x86 CPUs in 32-bit mode starting from 486. At least to read core dumps.
This is the current bare minimum and tested setup by the releng team in NetBSD.

OpenBSD used to support 80386 with MMU, but not sure if this is still true after migration to Clang.

I've already implemented FPU checks in the existing code:

- fpu_present (currently always on)
- osfxsr
- sse
- sse2
- fpu_save (fsave, fxsave, xsave, xsaveopt)
- fpu_save_sze
- xsave_features

Maybe reuse FPR for FXSAVE/FSAVE and add next to it XSAVE/XSAVE_OPT.

On NetBSD/i386 FPR registers are for FSAVE through GET_FPREGS/SET_FPREGS.


More information about the lldb-commits mailing list