qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Any easy war to access cpu.h in vl.c


From: ZEESHAN HAYAT
Subject: [Qemu-discuss] Any easy war to access cpu.h in vl.c
Date: Tue, 4 Dec 2018 14:46:49 +0000 (UTC)

Hi,
I am trying to access target/nios2/cpu.h in vl.c. If I add #include 
"target/nios2/cpu.h" in vl.c, I get the following errors:

In file included from 
/home/zeeshan/QEMU/qemu/vl.c:110:0:/home/zeeshan/QEMU/qemu/target/nios2/cpu.h:25:9:
 error: attempt to use poisoned "TARGET_LONG_BITS" #define TARGET_LONG_BITS 32  
       ^/home/zeeshan/QEMU/qemu/target/nios2/cpu.h:27:9: error: attempt to use 
poisoned "CPUArchState" #define CPUArchState struct CPUNios2State         ^In 
file included from /home/zeeshan/QEMU/qemu/target/nios2/cpu.h:29:0,             
    from 
/home/zeeshan/QEMU/qemu/vl.c:110:/home/zeeshan/QEMU/qemu/include/exec/cpu-defs.h:23:2:
 error: #error cpu.h included from common code #error cpu.h included from 
common code  ^~~~~In file included from 
/home/zeeshan/QEMU/qemu/include/exec/cpu-defs.h:30:0,                 from 
/home/zeeshan/QEMU/qemu/target/nios2/cpu.h:29,                 from 
/home/zeeshan/QEMU/qemu/vl.c:110:/home/zeeshan/QEMU/qemu/tcg/i386/tcg-target.h:226:8:
 error: attempt to use poisoned "CONFIG_SOFTMMU" #ifdef CONFIG_SOFTMMU        
^In file included from /home/zeeshan/QEMU/qemu/target/nios2/cpu.h:29:0,         
        from 
/home/zeeshan/QEMU/qemu/vl.c:110:/home/zeeshan/QEMU/qemu/include/exec/cpu-defs.h:37:9:
 error: attempt to use poisoned "TARGET_LONG_BITS" #ifndef TARGET_LONG_BITS     
    ^/home/zeeshan/QEMU/qemu/include/exec/cpu-defs.h:41:27: error: attempt to 
use poisoned "TARGET_LONG_BITS" #define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8) 
                          
^/home/zeeshan/QEMU/qemu/include/exec/cpu-defs.h:41:27: error: 
"TARGET_LONG_BITS" is not defined, evaluates to 0 [-Werror=undef] #define 
TARGET_LONG_SIZE (TARGET_LONG_BITS / 8)                           
^/home/zeeshan/QEMU/qemu/include/exec/cpu-defs.h:44:5: note: in expansion of 
macro ‘TARGET_LONG_SIZE’ #if TARGET_LONG_SIZE == 4     ^~~~~~~~~~~~~~~~
I tried to add extra flags while configuration to include the header path, but 
the error remains the same.
/Zeeshan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]