Register Write worked for one example. Next step will be trying more samples and then solve the get current thread context problem and gem5 stable issue