On 04/28/2014 10:57 PM, Stefan Weil wrote: > -static tcg_target_ulong tci_reg[TCG_TARGET_NB_REGS]; > +static inline void save_tb_ptr(void *tb_ptr) > +{ > +#ifdef CONFIG_SOFTMMU > + tci_tb_ptr = (uintptr_t)tb_ptr; > +#endif > +} >
Wouldn't it be better to save this always? I'm a bit confused about how the SIGSEGV path works with TCI (not at all?), but I have trouble believing that it ever could work without having this value available. r~