* tests/test-machmsg.c: add two use cases used by glibc during signal
handling
* tests/include/testlib.h
* tests/testlib.c: add new wait_thread_terminated() helper
---
tests/include/testlib.h | 1 +
tests/test-machmsg.c| 80 +
tests/testlib.c
---
tests/include/testlib.h | 1 +
tests/test-thread-state-fp.c | 232 +++
tests/testlib.c | 16 +++
tests/user-qemu.mk | 3 +-
4 files changed, 251 insertions(+), 1 deletion(-)
create mode 100644 tests/test-thread-state-fp.c
diff
* i386/i386/fpu.c: extend current getter and setter to support the
extended state; move the struct casting here to reuse the locking
and allocation logic for the thread state; make sure the new state
is set as valid, otherwise it won't be applied; add
i386_get_xstate_size() to dynamically r