On 19 June 2012 12:54, 陳韋任 (Wei-Ren Chen) <che...@iis.sinica.edu.tw> wrote: >> If you only have one CPU then using first_cpu->some_field1 should be >> almost as easy. :) > > I am afraid first_cpu (CPUArchState) is got poisoned, too. :/
Yes. You'll need to write a function which lives in a source file which has access to the poisoned symbols, and then call that from vl.c. hw_error() might be a useful example to follow. -- PMM