1#[cfg(any(feature = "i386", feature = "x86_64"))]
2pub type CPUArchPtr = *mut panda_sys::CPUX86State;
3
4#[cfg(any(feature = "arm", feature = "aarch64"))]
5pub type CPUArchPtr = *mut panda_sys::CPUARMState;
6
7#[cfg(any(
8 feature = "mips",
9 feature = "mipsel",
10 feature = "mips64",
11 feature = "mips64el"
12))]
13pub type CPUArchPtr = *mut panda_sys::CPUMIPSState;
14
15#[cfg(feature = "ppc")]
16pub type CPUArchPtr = *mut panda_sys::CPUPPCState;
17
18#[macro_export]
19macro_rules! cpu_arch_state {
20 ($cpu:expr) => {
21 $cpu.env_ptr as CPUArchPtr
22 };
23}