It seems Espressif is also on working something similar here: https://github.com/espressif/esp-emulator
But source code is not yet available :-( Would be interesting to compare the implementations.
But source code is not yet available :-( Would be interesting to compare the implementations.