[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Any better way to access CPUArchState in vl.c?
From: |
Wei-Ren Chen |
Subject: |
Re: [Qemu-devel] Any better way to access CPUArchState in vl.c? |
Date: |
Wed, 20 Jun 2012 16:03:01 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jun 19, 2012 at 01:08:47PM +0100, Peter Maydell wrote:
> On 19 June 2012 12:54, 陳韋任 (Wei-Ren Chen) <address@hidden> 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.
I take your approach, thanks. :)
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj