CODESYS actually does what you describe that cannot be done. Take a Windows OS, install their custom driver and it will remove a CPU core from Windows...