[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: |
Tue, 19 Jun 2012 19:54:03 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
> 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. :/
Even I comment out CPUArchState from poison.h,
--- vl.c
extern CPUArchState *first_cpu;
static void main_loop(void)
{
... snip ...
printf("%d", first_cpu->created);
}
---
I still get compilation error below,
---
/tmp/chenwj/qemu/vl.c:1548:20: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
/tmp/chenwj/qemu/vl.c: In function 'main_loop':
/tmp/chenwj/qemu/vl.c:1568:18: error: 'first_cpu' undeclared (first use in this
function)
---
Any thought on what I am missing? 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