diff --git a/repos/base-sel4/src/core/platform_thread.cc b/repos/base-sel4/src/core/platform_thread.cc index fa326c00c..73464857b 100644 --- a/repos/base-sel4/src/core/platform_thread.cc +++ b/repos/base-sel4/src/core/platform_thread.cc @@ -198,10 +198,10 @@ void Platform_thread::resume() } -void Platform_thread::state(Thread_state) +void Platform_thread::state(Thread_state s) { - warning(__PRETTY_FUNCTION__, " not implemented"); - throw Cpu_thread::State_access_failed(); + if (_pager) + *static_cast(&_pager->state) = s; }